operationstorage

package
v0.0.0-...-484898d Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OperationsCache

type OperationsCache struct {
	// cache is the backing store for the in-memory cache. Note
	// that if the cache is disabled, this will be nil
	Cache *ristretto.Cache[string, []byte]
	// contains filtered or unexported fields
}

func NewOperationsCache

func NewOperationsCache(cacheSize int64) (*OperationsCache, error)

func (*OperationsCache) Get

func (c *OperationsCache) Get(clientName string, operationHash string) []byte

func (*OperationsCache) Set

func (c *OperationsCache) Set(clientName, operationHash string, operationBody []byte, ttl int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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