Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Set(ctx context.Context, key string, value any, ttl time.Duration) *redis.StatusCmd SetXX(ctx context.Context, key string, value any, ttl time.Duration) *redis.BoolCmd SetNX(ctx context.Context, key string, value any, ttl time.Duration) *redis.BoolCmd Get(ctx context.Context, key string) *redis.StringCmd Del(ctx context.Context, keys ...string) *redis.IntCmd Incr(ctx context.Context, key string) *redis.IntCmd Ping(ctx context.Context) *redis.StatusCmd Close() error }
Client for redis.
Click to show internal directories.
Click to hide internal directories.