cache

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	REDIS  = "redis"
	MEMORY = "memory"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Set(ctx context.Context, key string, value any) error
	GetV(ctx context.Context, key string, value any) error
	SetWithTimeout(ctx context.Context, key string, value any, timeout time.Duration) error
}

func NewCache

func NewCache(ctx context.Context, conf *Config) Cache

type Config

type Config struct {
	Name  string
	Redis redis.Config
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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