redis

package
v0.0.0-...-4d831e1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	StringCache
	HashCache
	ListCache
	SetCache
	ZSetCache
}

type HashCache

type HashCache interface {
}

type ListCache

type ListCache interface {
}

type RedisCache

type RedisCache struct {
	// contains filtered or unexported fields
}

func (*RedisCache) Del

func (x *RedisCache) Del(ctx context.Context, key string) error

func (*RedisCache) Get

func (x *RedisCache) Get(ctx context.Context, key string) (string, error)

func (*RedisCache) Set

func (x *RedisCache) Set(ctx context.Context, key string, val any, ttl time.Duration) error

type SetCache

type SetCache interface {
}

type StringCache

type StringCache interface {
	// SET key value [EX seconds|PX milliseconds|NX|XX]
	Set(ctx context.Context, key string, value any, expiration time.Duration) error
	// GET key
	Get(ctx context.Context, key string) (string, error)
	// DEL key [key ...]
	Del(ctx context.Context, key string) error
}

type ZSetCache

type ZSetCache interface {
}

Jump to

Keyboard shortcuts

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