Documentation ¶
Index ¶
- func GenConsumeKey(red *redis.Client, originKey string, suffix string) (string, error)
- func GenTempKey(red *redis.Client, originKey string, suffix string) (string, error)
- func Intersect(red *redis.Client, key string, arr []uint64) ([]uint64, error)
- func Marshal(v interface{}) ([]byte, error)
- func MultiUnmarshal(vals []interface{}, out interface{})
- func MultiUnmarshalStr(vals []string, out interface{})
- func ReleaseTempKey(red *redis.Client, key string) error
- func Setup(settings *Settings) (*redis.Client, error)
- func Unmarshal(data []byte, v interface{}) error
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenConsumeKey ¶
func GenTempKey ¶
*
- gen a temp key which in same slot as originKey
- see: https://www.cnblogs.com/Finley/p/10674101.html#%E4%B8%B4%E6%97%B6%E9%94%AE%E7%9A%84%E7%94%9F%E6%88%90
func MultiUnmarshal ¶
func MultiUnmarshal(vals []interface{}, out interface{})
func MultiUnmarshalStr ¶
func MultiUnmarshalStr(vals []string, out interface{})
Types ¶
Click to show internal directories.
Click to hide internal directories.