Documentation
¶
Index ¶
- Variables
- func Close()
- func Get(key string) (string, error)
- func GetBytes(key string) ([]byte, error)
- func Set(key string, value string, ttl time.Duration) error
- func SetBytes(key string, value []byte, ttl time.Duration) error
- func UpdateBytes(key string, ttl time.Duration, ...) error
- type UpdateAction
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type UpdateAction ¶ added in v0.2.14
type UpdateAction int
UpdateAction 表示 UpdateBytes 回调希望对当前 key 执行的操作。
const ( // UpdateKeep 保持当前值不变。 UpdateKeep UpdateAction = iota // UpdateSet 写入回调返回的新值。 UpdateSet )
Click to show internal directories.
Click to hide internal directories.