Documentation ¶
Index ¶
- func CheckCache(key *string) (bool, error)
- func Close()
- func DelCache(key *string) error
- func GetBytesCache(key *string) ([]byte, error)
- func GetCacheTTL(key *string) (int64, error)
- func GetStringCache(key *string) (*string, error)
- func ListKeys(offset int64, prefix *string) (int64, []string, error)
- func MDelCache(keys []string) error
- func MGetBytesCache(keys []string) ([][]byte, error)
- func MGetStringCache(keys []string) ([]*string, error)
- func MSetBytesCache(keys []string, values [][]byte) error
- func MSetStringCache(keys, values []string) error
- func Open(addr string, max int, idle time.Duration)
- func SetBytesCache(key *string, value []byte) error
- func SetBytesCacheEX(key *string, value []byte, ex uint64) error
- func SetStringCache(key, value *string) error
- func SetStringCacheEX(key, value *string, ex uint64) error
- func UpdateExpiration(k []string, ex []uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListKeys ¶
offset From where to scan. prefix The prefix string to scan.
Return: (offset, keys, error), if the offset is 0, means the scan is over.
func MGetBytesCache ¶
MGet the cache bytes values for the keys.
Return: the values and ok. If the value for one is not exist, it will be nil
func MGetStringCache ¶
MGet the cache string values for the keys.
Return: the values and ok. If the value for one is not exist, it will be nil"
func MSetBytesCache ¶
MSet the cache bytes values for the keys. Items for values can't be nil.
Return: error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.