Documentation ¶ Index ¶ func GetRedis() redis.Master func GetSlaveRedis(name string) redis.Master func NewCache(name string) icache.ICacher func NewQueue(name string) icache.Quequer func NewRedis() redis.Rediser func Register(name string, cacher icache.ICacher) func RegisterQueue(name string, cacher icache.Quequer) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetRedis ¶ func GetRedis() redis.Master GetRedis func GetSlaveRedis ¶ func GetSlaveRedis(name string) redis.Master GetSlaveRedis func NewCache ¶ func NewCache(name string) icache.ICacher NewCache 新建一个缓存对象 func NewQueue ¶ func NewQueue(name string) icache.Quequer NewQueue func NewRedis ¶ func NewRedis() redis.Rediser NewRedis 新建一个redis对象 func Register ¶ func Register(name string, cacher icache.ICacher) Register 注册缓存对象 func RegisterQueue ¶ func RegisterQueue(name string, cacher icache.Quequer) Register 注册缓存对象 Types ¶ This section is empty. Source Files ¶ View all Source files cache.go Directories ¶ Show internal Expand all Path Synopsis filecache icache memcache redis Click to show internal directories. Click to hide internal directories.