Versions in this module Expand all Collapse all v2 v2.2.7 Jul 12, 2025 Changes in this version + func AddPrefix(key string) string + func Client() interface + func DecrFloat(ctx context.Context, key string, value float64) (float64, error) + func DecrInt(ctx context.Context, key string, value int64) (int64, error) + func Delete(ctx context.Context, keys ...string) (bool, error) + func Has(ctx context.Context, key string) (bool, error) + func IncrFloat(ctx context.Context, key string, value float64) (float64, error) + func IncrInt(ctx context.Context, key string, value int64) (int64, error) + func Set(ctx context.Context, key string, value interface{}, ...) error + func SetCache(cache Cache) + type Cache interface + AddPrefix func(key string) string + Client func() interface{} + DecrFloat func(ctx context.Context, key string, value float64) (float64, error) + DecrInt func(ctx context.Context, key string, value int64) (int64, error) + Delete func(ctx context.Context, keys ...string) (bool, error) + Get func(ctx context.Context, key string, def ...interface{}) Result + GetSet func(ctx context.Context, key string, fn SetValueFunc) Result + Has func(ctx context.Context, key string) (bool, error) + IncrFloat func(ctx context.Context, key string, value float64) (float64, error) + IncrInt func(ctx context.Context, key string, value int64) (int64, error) + Set func(ctx context.Context, key string, value interface{}, ...) error + func GetCache() Cache + type Result interface + Bool func() (bool, error) + Bools func() ([]bool, error) + Bytes func() ([]byte, error) + Duration func() (time.Duration, error) + Durations func() ([]time.Duration, error) + Err func() error + Float32 func() (float32, error) + Float32s func() ([]float32, error) + Float64 func() (float64, error) + Float64s func() ([]float64, error) + Int func() (int, error) + Int16 func() (int16, error) + Int16s func() ([]int16, error) + Int32 func() (int32, error) + Int32s func() ([]int32, error) + Int64 func() (int64, error) + Int64s func() ([]int64, error) + Int8 func() (int8, error) + Int8s func() ([]int8, error) + Ints func() ([]int, error) + Map func() (map[string]interface{}, error) + Result func() (value.Value, error) + Scan func(pointer interface{}) error + Slice func() ([]interface{}, error) + String func() (string, error) + Strings func() ([]string, error) + Uint func() (uint, error) + Uint16 func() (uint16, error) + Uint16s func() ([]uint16, error) + Uint32 func() (uint32, error) + Uint32s func() ([]uint32, error) + Uint64 func() (uint64, error) + Uint64s func() ([]uint64, error) + Uint8 func() (uint8, error) + Uint8s func() ([]uint8, error) + Uints func() ([]uint, error) + func Get(ctx context.Context, key string, def ...interface{}) Result + func GetSet(ctx context.Context, key string, fn SetValueFunc) Result + func NewResult(val interface{}, err ...error) Result + type SetValueFunc func() (interface{}, error)