Quantcast
Channel: How can I read from multiple cache keys in Ruby simultaneously? - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Amit Acharya for How can I read from multiple cache keys in Ruby...

According to rails docs docs ActiveSupport::Cache::MemCacheStore has a method read_multi which can do multi-get with memcache

View Article



How can I read from multiple cache keys in Ruby simultaneously?

I have a bunch of cache keys I want the value of in a Ruby model. How can I retrieve them simultaneously (or in a batch) rather than having to loop through each key and sequentially request the data?...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images