memory

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 2 Imported by: 3

Documentation

Overview

Package memory provides utilities (interfaces and simple default implementations) for transparently storing and retrieving key:value assignments.

The interfaces may be used by persistent implementations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UxTimestamp added in v0.1.19

func UxTimestamp() int64

Types

type MemGetter

type MemGetter = func() Memory

type Memory

type Memory interface {
	Get(string, string) string
	Set(string, string, string)
	Options(string) *Options
}

func MapMemory added in v0.1.14

func MapMemory() Memory

function MapMemory() provides a simple default Memory implementation.

type Options

type Options struct {
	Lifetime int64
}

Jump to

Keyboard shortcuts

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