ram

package
v0.0.12-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package ram provides a memory storage that stores data in RAM.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrObjectNotFound = errors.New("object not found")
)

Functions

This section is empty.

Types

type Ram

type Ram struct {
	// contains filtered or unexported fields
}

func New

func New() *Ram

func (*Ram) All

func (r *Ram) All() types.M

func (*Ram) Clear

func (r *Ram) Clear() error

func (*Ram) Delete

func (r *Ram) Delete(key string) error

func (*Ram) Get

func (r *Ram) Get(key string) interface{}

func (*Ram) Set

func (r *Ram) Set(key string, value interface{}) error

Jump to

Keyboard shortcuts

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