Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶ added in v0.0.4
type Cache interface {
Set(key, val string, expiration time.Duration) error
SetNoExpiration(key, val string) error
Get(key string) (string, error)
Del(keys ...string) error
Clear() error
}
var C Cache
func NewGoCache ¶ added in v0.0.4
func NewGoCache() Cache
func NewRedisCache ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.