memory

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Memory

type Memory[T any] interface {
	Pop(string) (T, bool)
	Put(string, T, time.Duration)
}

func NewRuntime

func NewRuntime[T any]() Memory[T]

type Runtime

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

func (*Runtime[T]) Pop

func (r *Runtime[T]) Pop(key string) (T, bool)

func (*Runtime[T]) Put

func (r *Runtime[T]) Put(key string, data T, ttl time.Duration)

Jump to

Keyboard shortcuts

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