v8

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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) BLPop

func (x *RedisClientImplV8) BLPop(ctx context.Context, timeout time.Duration, keys ...string) ([]string, error)

func (*RedisClientImplV8) Del

func (x *RedisClientImplV8) Del(ctx context.Context, keys ...string) error

func (*RedisClientImplV8) Get

func (x *RedisClientImplV8) Get(ctx context.Context, key string) ([]byte, error)

func (*RedisClientImplV8) Keys

func (x *RedisClientImplV8) Keys(ctx context.Context, pattern string) ([]string, error)

func (*RedisClientImplV8) RPushAndExpire

func (x *RedisClientImplV8) RPushAndExpire(ctx context.Context, key string, value string, ttl time.Duration) error

func (*RedisClientImplV8) SAdd

func (x *RedisClientImplV8) SAdd(ctx context.Context, key string, members ...interface{}) error

func (*RedisClientImplV8) SMembers

func (x *RedisClientImplV8) SMembers(ctx context.Context, key string) ([]string, error)

func (*RedisClientImplV8) SRem

func (x *RedisClientImplV8) SRem(ctx context.Context, key string, members ...interface{}) error

func (*RedisClientImplV8) Set

func (x *RedisClientImplV8) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) (string, error)

func (*RedisClientImplV8) SetEX

func (x *RedisClientImplV8) SetEX(ctx context.Context, key string, value interface{}, expiration time.Duration) error

func (*RedisClientImplV8) SetNX

func (x *RedisClientImplV8) SetNX(ctx context.Context, key string, value interface{}, expiration time.Duration) (bool, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL