Method: Xunch::ObjectCache#putex
- Defined in:
- lib/xunch/cache/object_cache.rb
#putex(value, ttl) ⇒ Object
21 22 23 24 25 26 27 28 29 |
# File 'lib/xunch/cache/object_cache.rb', line 21 def putex(value, ttl) if(value == nil) return end key = getCacheObjectKey(value) key = assembleKey(key) data = @codec.encode(value) @shard_redis.set(key,data,ttl) end |