memkv

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryStore

type InMemoryStore struct {
	// contains filtered or unexported fields
}
var Store *InMemoryStore

func NewStore

func NewStore(defaultExpiration time.Duration) *InMemoryStore

func (*InMemoryStore) Close

func (s *InMemoryStore) Close()

func (*InMemoryStore) Delete

func (s *InMemoryStore) Delete(key string)

func (*InMemoryStore) Get

func (s *InMemoryStore) Get(key string) (interface{}, bool)

func (*InMemoryStore) Set

func (s *InMemoryStore) Set(key string, value interface{}, expiration ...time.Duration)

Jump to

Keyboard shortcuts

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