manager

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCache

func NewCache(cli cache.Client, cacheOpts CacheOptions, cacheConfig *options.Options) cache.Cache

Types

type CacheOptions

type CacheOptions struct {
	UseIndex     bool
	IndexCliOpts index.IndexedClientOptions
}

Provide initialization options to the Manager / cache.Cache creation

type Manager

type Manager struct {
	cache.Client
	// contains filtered or unexported fields
}

Manager implements the cache.Cache interface for Trickster, providing an abstracted cache layer with metrics, locking, and optional index / LRU-key-reaper.

func (*Manager) Configuration

func (cm *Manager) Configuration() *options.Options

func (*Manager) Connect

func (cm *Manager) Connect() error

func (*Manager) Locker

func (cm *Manager) Locker() locks.NamedLocker

func (*Manager) Remove

func (cm *Manager) Remove(cacheKeys ...string) error

func (*Manager) Retrieve

func (cm *Manager) Retrieve(cacheKey string) ([]byte, status.LookupStatus, error)

func (*Manager) RetrieveReference

func (cm *Manager) RetrieveReference(cacheKey string) (any, status.LookupStatus, error)

func (*Manager) SetLocker

func (cm *Manager) SetLocker(l locks.NamedLocker)

func (*Manager) Store

func (cm *Manager) Store(cacheKey string, byteData []byte, ttl time.Duration) error

func (*Manager) StoreReference

func (cm *Manager) StoreReference(cacheKey string, data cache.ReferenceObject, ttl time.Duration) error

Jump to

Keyboard shortcuts

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