cache

package
v1.2.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheOptions

type CacheOptions struct {
}

CacheOptions contains options for configuring cache

type CacheStore

type CacheStore interface {
	Get(ctx context.Context, key string) (interface{}, error)
	Set(ctx context.Context, key string, value interface{}, options *CacheOptions) error
	Delete(ctx context.Context, key string) error
	Invalidate(ctx context.Context, options *CacheOptions) error
	Clear(ctx context.Context) error
}

CacheStore interface

func GetCache

func GetCache() CacheStore

GetCache function

Jump to

Keyboard shortcuts

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