My application requires two use-cases for a cache:
- Redis as a cache. I plan to cache items (JSON blobs) by id using
allkeys-lrumemory policy. Average JSON item will take <1 Mb. - Redis as a queue. I decided to build content social feed (similar to Instagram or Facebook) using Redis queue API. It will use same memory policy. Capacity of a queue will be ~1000 elements. Average queue (which represents a feed per user) will take ~10 Mb.
Can i use a single instance of Redis for both purposes without performance impact? Is it better to split them for better performance? Thank you.