Versions in this module Expand all Collapse all v1 v1.0.1 Jun 10, 2024 Changes in this version + type RedisPlugin struct + func (r *RedisPlugin) BatchDeleteKeys(ctx context.Context, keys []string) (int64, error) + func (r *RedisPlugin) BatchGetValue(ctx context.Context, keys []string, p reflect.Type) (interface{}, error) + func (r *RedisPlugin) BatchKeyExist(ctx context.Context, keys []string) (bool, error) + func (r *RedisPlugin) BatchSetValue(ctx context.Context, pairs []util.Pair) error + func (r *RedisPlugin) CleanCache(ctx context.Context) (int64, error) + func (r *RedisPlugin) DeleteKey(ctx context.Context, key string) (int64, error) + func (r *RedisPlugin) DeleteKeysWithPrefix(ctx context.Context, keyPrefix string) (int64, error) + func (r *RedisPlugin) GetValue(ctx context.Context, key string, ptr interface{}) error + func (r *RedisPlugin) Init(conf *config.CacheConfig, prefix string) error + func (r *RedisPlugin) InitScripts() error + func (r *RedisPlugin) KeyExist(ctx context.Context, key string) (int64, error) + func (r *RedisPlugin) SetBitValue(ctx context.Context, offsets []int64) error + func (r *RedisPlugin) SetValue(ctx context.Context, key string, value interface{}) error + func (r *RedisPlugin) Test(ctx context.Context, offsets []int64) (bool, error) + type TangCacheInterface interface + BatchDeleteKeys func(ctx context.Context, keys []string) (int64, error) + BatchGetValue func(ctx context.Context, keys []string, p reflect.Type) (interface{}, error) + BatchKeyExist func(ctx context.Context, keys []string) (bool, error) + BatchSetValue func(ctx context.Context, pairs []util.Pair) error + CleanCache func(ctx context.Context) (int64, error) + DeleteKey func(ctx context.Context, key string) (int64, error) + DeleteKeysWithPrefix func(ctx context.Context, keyPrefix string) (int64, error) + GetValue func(ctx context.Context, key string, ptr interface{}) error + Init func(conf *config.CacheConfig, prefix string) error + InitScripts func() error + KeyExist func(ctx context.Context, key string) (int64, error) + SetBitValue func(ctx context.Context, offsets []int64) error + SetValue func(ctx context.Context, key string, value interface{}) error + Test func(ctx context.Context, offsets []int64) (bool, error)