Documentation ¶
Index ¶
- func Delete(key string) error
- func GetInt64(key string) (int64, bool, error)
- func GetString(key string) (string, bool, error)
- func KeyGen(v ...interface{}) string
- func Load(key string, obj interface{}) (exists bool, err error)
- func Set(key string, val interface{}, opt ...Opt) error
- func SetCacheExpiration(d time.Duration)
- type Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Set ¶
Set - set value in cache cache life time by default is cacheExpiration for set up cache life time for setting value set up opt parameter (exp: Opt{"expiration", time.Minute})
func SetCacheExpiration ¶
SetCacheExpiration - set default cache expire time
Types ¶
Click to show internal directories.
Click to hide internal directories.