goredis

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 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 RedisCache

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

func NewRedisCache

func NewRedisCache(client redis.UniversalClient) *RedisCache

func (*RedisCache) MDel

func (r *RedisCache) MDel(ctx context.Context, keys []string) error

func (*RedisCache) MGet

func (r *RedisCache) MGet(ctx context.Context, keys []string) (map[string][]byte, error)

func (*RedisCache) MSet

func (r *RedisCache) MSet(ctx context.Context, kvMap map[string][]byte, ttl time.Duration) error

func (*RedisCache) Name

func (r *RedisCache) Name() string

Jump to

Keyboard shortcuts

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