Redis and Memcache or just Redis?

后端 未结 6 1237
悲哀的现实
悲哀的现实 2020-12-12 11:01

I\'m using memcached for some caching in my Rails 3 app through the simple Rails.cache interface and now I\'d like to do some background job processing with red

6条回答
  •  感动是毒
    2020-12-12 11:17

    Assuming that migrating from memcached to redis for the caching you already do is easy enough, I'd go with redis only to keep things simple.

    In redis persistence is optional, so you can use it much like memcached if that is what you want. You may even find that making your cache persistent is useful to avoid lots of cache misses after a restart. Expiry is available also - the algorithm is a bit different from memcached, but not enough to matter for most purposes - see http://redis.io/commands/expire for details.

提交回复
热议问题