Documentation ¶
Index ¶
- type Client
- type NoopClient
- func (*NoopClient) Close() error
- func (*NoopClient) Del(ctx context.Context, _ ...string) *redis.IntCmd
- func (*NoopClient) Get(ctx context.Context, _ string) *redis.StringCmd
- func (*NoopClient) Incr(ctx context.Context, _ string) *redis.IntCmd
- func (*NoopClient) Ping(ctx context.Context) *redis.StatusCmd
- func (*NoopClient) Set(ctx context.Context, _ string, _ any, _ time.Duration) *redis.StatusCmd
- func (*NoopClient) SetNX(ctx context.Context, _ string, _ any, _ time.Duration) *redis.BoolCmd
- func (*NoopClient) SetXX(ctx context.Context, _ string, _ any, _ time.Duration) *redis.BoolCmd
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.
type NoopClient ¶ added in v1.143.0
type NoopClient struct{}
NoopClient for redis.
func (*NoopClient) Close ¶ added in v1.143.0
func (*NoopClient) Close() error
func (*NoopClient) Del ¶ added in v1.143.0
func (*NoopClient) Del(ctx context.Context, _ ...string) *redis.IntCmd
func (*NoopClient) Get ¶ added in v1.143.0
func (*NoopClient) Get(ctx context.Context, _ string) *redis.StringCmd
func (*NoopClient) Incr ¶ added in v1.143.0
func (*NoopClient) Incr(ctx context.Context, _ string) *redis.IntCmd
func (*NoopClient) Ping ¶ added in v1.143.0
func (*NoopClient) Ping(ctx context.Context) *redis.StatusCmd
Click to show internal directories.
Click to hide internal directories.