cache

package
v0.0.36 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorCacheInstanceNotFound      = fmt.Errorf("cache instance not found")
	ErrorCacheInstanceAlreadyExists = fmt.Errorf("cache instance already exists")
)

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func NewCache added in v0.0.36

func NewCache(storeInitializer func(instanceName string) (store.Store, error)) (*Cache, error)

func (*Cache) Close

func (c *Cache) Close() error

func (*Cache) InstanceClose added in v0.0.36

func (c *Cache) InstanceClose(ctx context.Context, cacheInstanceName string) error

func (*Cache) InstanceCreate added in v0.0.36

func (c *Cache) InstanceCreate(ctx context.Context, cacheInstanceName string) error

func (*Cache) InstanceDelete added in v0.0.36

func (c *Cache) InstanceDelete(ctx context.Context, cacheInstanceName string) error

func (*Cache) InstanceExists added in v0.0.36

func (c *Cache) InstanceExists(ctx context.Context, cacheName string) bool

func (*Cache) InstanceIntentDelete added in v0.0.36

func (c *Cache) InstanceIntentDelete(ctx context.Context, cacheName string, intentName string) error

func (*Cache) InstanceIntentExists added in v0.0.36

func (c *Cache) InstanceIntentExists(ctx context.Context, cacheName string, intentName string) (bool, error)

func (*Cache) InstanceIntentGet added in v0.0.36

func (c *Cache) InstanceIntentGet(ctx context.Context, cacheName string, intentName string) ([]byte, error)

func (*Cache) InstanceIntentGetAll added in v0.0.36

func (c *Cache) InstanceIntentGetAll(ctx context.Context, cacheName string, excludeIntentNames []string, intentChan chan<- *types.Intent, errChan chan<- error)

func (*Cache) InstanceIntentModify added in v0.0.36

func (c *Cache) InstanceIntentModify(ctx context.Context, cacheName string, intentName string, data []byte) error

func (*Cache) InstanceIntentsList added in v0.0.36

func (c *Cache) InstanceIntentsList(ctx context.Context, cacheName string) ([]string, error)

func (*Cache) InstancesList added in v0.0.36

func (c *Cache) InstancesList(ctx context.Context) []string

Jump to

Keyboard shortcuts

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