Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Add(key string, value interface{}) error Get(key string, out interface{}) (ok bool, err error) Remove(key string) error }
func NewRedis ¶ added in v1.0.2
func NewRedis(conf RedisConfig) Cache
type MultiCache ¶ added in v1.0.3
type MultiCache []Cache
MultiCache makes multi-layer caching a breeze
func (MultiCache) Add ¶ added in v1.0.3
func (mc MultiCache) Add(key string, value interface{}) error
func (MultiCache) Get ¶ added in v1.0.3
func (mc MultiCache) Get(key string, out interface{}) (bool, error)
func (MultiCache) Remove ¶ added in v1.0.3
func (mc MultiCache) Remove(key string) error
Click to show internal directories.
Click to hide internal directories.