rediscache

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*RedisCache)

type RedisCache

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

func New

func New(redisCache *cache.Cache, opts ...Option) *RedisCache

func (*RedisCache) Get

func (r *RedisCache) Get(ctx context.Context, key string) ([]byte, error)

func (*RedisCache) Set

func (r *RedisCache) Set(ctx context.Context, key string, value []byte) error

func (*RedisCache) SetWithTTL

func (r *RedisCache) SetWithTTL(ctx context.Context, key string, value []byte, ttl time.Duration) error

Jump to

Keyboard shortcuts

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