gdatcache

package
v0.0.0-...-a4f20e0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: GPL-3.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 Cache

type Cache[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any](mach *gdat.Machine, marshal bcsdk.Marshaler[T], parser bcsdk.Parser[T], size int) *Cache[T]

func (*Cache[T]) Get

func (c *Cache[T]) Get(ctx context.Context, s bcsdk.RO, ref gdat.Ref) (T, error)

func (*Cache[T]) Post

func (c *Cache[T]) Post(ctx context.Context, s bcsdk.WO, x T) (gdat.Ref, error)

Jump to

Keyboard shortcuts

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