cache

package
v0.0.0-...-96fe353 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: CC-BY-SA-4.0 Imports: 1 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 struct {
	Values map[string]weak.Pointer[Value]
}

func (*Cache) Get

func (c *Cache) Get(key string) *Value

func (*Cache) Put

func (c *Cache) Put(key string, value *Value)

BEGIN CACHE OMIT

type Value

type Value struct {
	Buffer [1024 * 1024]uint8 // Some big stuff.
}

Jump to

Keyboard shortcuts

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