inmemstore

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2025 License: MIT Imports: 9 Imported by: 1

README

inmemstore

memory store

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Expirable

type Expirable interface {
	ExpireAtUnix(context.Context) int64
}

type InmemStore

type InmemStore interface {
	// Create Pathable data
	Create(context.Context, any) error
	// Write/Set Pathable data
	Set(context.Context, any) error
	// Read/Get Pathable data
	Get(context.Context, any) error
	// Delete Pathable data
	Delete(context.Context, any) error
}

func New

func New(cleaningWindow time.Duration) InmemStore

type Pathable

type Pathable interface {
	Path(context.Context) string
}

Jump to

Keyboard shortcuts

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