Quantcast
Channel: Active questions tagged redis+ruby-on-rails - Stack Overflow
Viewing all articles
Browse latest Browse all 873

How can I set the expire time in Redis' ruby client when using mapped_mset?

$
0
0

I am trying to use

redis.mapped_mset({ "f1" => "v1", "f2" => "v2" })

to set multiple keys into Redis and I can not set expire time at the same time.The only way to set expire time to to use this:

set(key, value, options = {})

or

expire(key, seconds)

I have to call many times and this is not what I want to see.Are there any other ways to solve this problem?


Viewing all articles
Browse latest Browse all 873

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>