cache

package
v0.0.0-...-5742ec1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 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(addr string, ttl time.Duration) *RedisCache

func (*RedisCache) Get

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

func (*RedisCache) Set

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

Jump to

Keyboard shortcuts

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