type CacheHook
用于挂钩到缓存中以便对存储于缓存中的密钥执行操作的接口。
方法
Put
Put(data interface{}) interface{}
使对象为存储在缓存中做好准备。
Get
Get(data interface{}) interface{}
从已缓存对象派生对象。
用于挂钩到缓存中以便对存储于缓存中的密钥执行操作的接口。
Put(data interface{}) interface{}
使对象为存储在缓存中做好准备。
Get(data interface{}) interface{}
从已缓存对象派生对象。