class WechatClient::CacheStore::BaseStore
Public Class Methods
new(client)
click to toggle source
# File lib/wechat_client/cache_store/base_store.rb, line 4 def initialize client @client = client end
Public Instance Methods
read(key)
click to toggle source
# File lib/wechat_client/cache_store/base_store.rb, line 13 def read key mar_obj = cache_read(key) Marshal.load(mar_obj) end
write(key, json)
click to toggle source
# File lib/wechat_client/cache_store/base_store.rb, line 8 def write key, json mar_obj = Marshal.dump(json) cache_write(key, mar_obj) end