redis

package
v1.200.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 3 Imported by: 3

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.

type NoopClient added in v1.143.0

type NoopClient struct{}

NoopClient for redis.

func NewNoopClient added in v1.143.0

func NewNoopClient() *NoopClient

NewNoopClient 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

func (*NoopClient) Set added in v1.143.0

func (*NoopClient) Set(ctx context.Context, _ string, _ any, _ time.Duration) *redis.StatusCmd

func (*NoopClient) SetNX added in v1.143.0

func (*NoopClient) SetNX(ctx context.Context, _ string, _ any, _ time.Duration) *redis.BoolCmd

func (*NoopClient) SetXX added in v1.143.0

func (*NoopClient) SetXX(ctx context.Context, _ string, _ any, _ time.Duration) *redis.BoolCmd

Jump to

Keyboard shortcuts

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