Method: Xunch::ObjectCache#multi_putex
- Defined in:
- lib/xunch/cache/object_cache.rb
#multi_putex(values, ttl) ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/xunch/cache/object_cache.rb', line 49 def multi_putex(values,ttl) kvs = Hash.new values.each { | value | if value == nil next end key = getCacheObjectKey(value) key = assembleKey(key); kvs[key] = @codec.encode(value); } @shard_redis.mset(kvs, ttl); end |