Documentation ¶
Index ¶
- Variables
- func Del(k string) error
- func Expire(k string, timeout time.Duration) error
- func Get(k string, v interface{}) error
- func GetBool(k string) (bool, error)
- func GetInt(k string) (int, error)
- func GetInt32(k string) (int32, error)
- func GetInt64(k string) (int64, error)
- func GetStr(k string) (string, error)
- func GetUint(k string) (uint, error)
- func GetUint32(k string) (uint32, error)
- func GetUint64(k string) (uint64, error)
- func HIncr(key, subKey string) error
- func HIncrEx(key, subKey string, timeout time.Duration) error
- func HSet(key, subKey string, v interface{}) error
- func HSetEx(key, subKey string, v interface{}, timeout time.Duration) error
- func Incr(k string) error
- func IncrEx(k string, timeout time.Duration) error
- func InitCache() (needRun bool, err error)
- func Set(k string, v interface{}) error
- func SetEx(k string, v interface{}, timeout time.Duration) error
- type Init
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("cache key not found")
)
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.