Documentation ¶
Index ¶
- func NewRedisClientImplV8(client *redis.Client) core.IRedisClient
- type RedisClientImplV8
- func (x *RedisClientImplV8) BLPop(ctx context.Context, timeout time.Duration, keys ...string) ([]string, error)
- func (x *RedisClientImplV8) Del(ctx context.Context, keys ...string) error
- func (x *RedisClientImplV8) Get(ctx context.Context, key string) ([]byte, error)
- func (x *RedisClientImplV8) Keys(ctx context.Context, pattern string) ([]string, error)
- func (x *RedisClientImplV8) RPushAndExpire(ctx context.Context, key string, value string, ttl time.Duration) error
- func (x *RedisClientImplV8) SAdd(ctx context.Context, key string, members ...interface{}) error
- func (x *RedisClientImplV8) SMembers(ctx context.Context, key string) ([]string, error)
- func (x *RedisClientImplV8) SRem(ctx context.Context, key string, members ...interface{}) error
- func (x *RedisClientImplV8) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) (string, error)
- func (x *RedisClientImplV8) SetEX(ctx context.Context, key string, value interface{}, expiration time.Duration) error
- func (x *RedisClientImplV8) SetNX(ctx context.Context, key string, value interface{}, expiration time.Duration) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRedisClientImplV8 ¶
func NewRedisClientImplV8(client *redis.Client) core.IRedisClient
Types ¶
type RedisClientImplV8 ¶
type RedisClientImplV8 struct {
// contains filtered or unexported fields
}
func (*RedisClientImplV8) Del ¶
func (x *RedisClientImplV8) Del(ctx context.Context, keys ...string) error
func (*RedisClientImplV8) RPushAndExpire ¶
func (*RedisClientImplV8) SAdd ¶
func (x *RedisClientImplV8) SAdd(ctx context.Context, key string, members ...interface{}) error
func (*RedisClientImplV8) SRem ¶
func (x *RedisClientImplV8) SRem(ctx context.Context, key string, members ...interface{}) error
Click to show internal directories.
Click to hide internal directories.