storage

package
v0.0.0-...-8480fd3 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryStorage

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

func NewInMemoryStorage

func NewInMemoryStorage[T any]() *InMemoryStorage[T]

func (*InMemoryStorage[T]) Delete

func (s *InMemoryStorage[T]) Delete(key int64)

func (*InMemoryStorage[T]) Get

func (s *InMemoryStorage[T]) Get(key int64) (T, bool)

func (*InMemoryStorage[T]) Set

func (s *InMemoryStorage[T]) Set(key int64, value T)

Jump to

Keyboard shortcuts

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