cache

package
v0.7.16 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 7 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(c RedisCacheConfig) *RedisCache

func (*RedisCache) Get

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

func (*RedisCache) Set

func (rc *RedisCache) Set(ctx context.Context, key string, val string, exp time.Duration) error

type RedisCacheConfig

type RedisCacheConfig struct {
	Addr string
}

Jump to

Keyboard shortcuts

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