cache

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisClient

func NewRedisClient(ctx context.Context, cfg *vectorstore.RedisConfig) (redis.UniversalClient, error)

NewRedisClient creates a Redis client from the given config. If Addr is empty, returns nil client and no error (caller can treat as disabled).

Types

type CacheConfig

type CacheConfig struct {
	Redis *vectorstore.RedisConfig `json:"redis,omitempty"` // TODO:这个从config.json获取
}

CacheConfig holds the shared cache configuration. Currently contains Redis settings used by billing plugin for budget caching.

Jump to

Keyboard shortcuts

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