7 ms·
I'm Redis using it for: - session management - message queue (previously using 0mq pub sub) - memory cache (LRU argument = weak) That's previously 3 technol
by weixiyen 16y ago
I'm Redis using it for:
- session management
- message queue (previously using 0mq pub sub)
- memory cache (LRU argument = weak)
That's previously 3 technologies I had to manage, now only having to install 1. That means only having to worry about 1 driver, and only dealing with 1 API.
Less technologies in the stack is a good thing, esp if you get a performance boost as well.
The current bottleneck is of course an easy way to scale, and 2.2 comes with Redis Cluster.
The other problem some have indicated is the LRU implementation, which imo is a non-issue in almost all use cases.
- robhu 16y agoAre you using it as a LRU cache? I'd really like to use Redis for this -- are there any examples out there of how to do it / could you share how you've done it?
- weixiyen 16y agoset max-memory inside the config, it'll automatically do it for you as long as you are using expire on the keys. The implementation according to antirez is that they sample 3 random keys, and expire the soonest one, so put your high priority data with a longer expire and you'll be fine.
- robhu 16y agoThank you ^_^