Versions in this module Expand all Collapse all v1 v1.0.0 Oct 17, 2023 Changes in this version + const ForceSetCAS + const HMSetLua + const HSetLua + const MSetLua + const MaxCAS + const SetLua + var HMSetScript = script.New(HMSetLua) + var HSetScript = script.New(HSetLua) + var MSetScript = script.New(MSetLua) + var SetScript = script.New(SetLua) + func BytesToString(b []byte) string + func Decode(raw []byte) ([]byte, int64, error) + func Encode(value []byte, cas int64) []byte + func Marshal(in interface{}) ([]byte, error) + func MarshalJSONString(v interface{}) string + func NextCAS(cas int64) int64 + func StringToBytes(s string) []byte + func Unmarshal(in []byte, message interface{}) error + type GetCmd struct + func Get(ctx context.Context, c redis.Cmdable, key string) *GetCmd + func HGet(ctx context.Context, c redis.Cmdable, key, field string) *GetCmd + func (cmd *GetCmd) Bytes() ([]byte, int64, error) + func (cmd *GetCmd) Result() (string, int64, error) + func (cmd *GetCmd) Unmarshal(message interface{}) (int64, error) + func (cmd *GetCmd) Val() (string, int64) + type HSetCmd struct + func HSet(ctx context.Context, c redis.Cmdable, key, field string, value interface{}, ...) *HSetCmd + func (cmd *HSetCmd) Err() error + func (cmd *HSetCmd) Result() (int64, error) + func (cmd *HSetCmd) Val() int64 + type MGetCmd struct + func HMGet(ctx context.Context, c redis.Cmdable, key string, fields ...string) *MGetCmd + func MGet(ctx context.Context, c redis.Cmdable, keys ...string) *MGetCmd + func (cmd *MGetCmd) Unmarshal(i int64, message interface{}) (int64, error) + type MSetCmd struct + func HMSet(ctx context.Context, c redis.Cmdable, key string, values ...*S) *MSetCmd + func MSet(ctx context.Context, c redis.Cmdable, values ...*S) *MSetCmd + func MSetWithEval(ctx context.Context, c redis.Cmdable, values ...*S) *MSetCmd + func (cmd *MSetCmd) Err() error + func (cmd *MSetCmd) Result() ([]error, error) + type S struct + CAS int64 + Duration time.Duration + Key string + Value interface{} + type SetCmd struct + func Set(ctx context.Context, c redis.Cmdable, key string, value interface{}, cas int64, ...) *SetCmd + func (cmd *SetCmd) Err() error + func (cmd *SetCmd) Result() (string, error) + func (cmd *SetCmd) Val() string