cache

package
v0.0.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL