class WechatClient::CacheStore::RedisStore
Public Instance Methods
cache_read(key)
click to toggle source
# File lib/wechat_client/cache_store/redis_store.rb, line 21 def cache_read key @client.get(key) end
cache_write(key, mar)
click to toggle source
# File lib/wechat_client/cache_store/redis_store.rb, line 14 def cache_write key, mar @client.multi do @client.set(key, mar) @client.expire(key, 60*60) end end
delete(key)
click to toggle source
# File lib/wechat_client/cache_store/redis_store.rb, line 10 def delete key @client.del(key) end
exists(key)
click to toggle source
# File lib/wechat_client/cache_store/redis_store.rb, line 6 def exists key @client.exists(key) end