Help us shape the future of Go! Take the 2026 Go Developer Survey

inmemory

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package inmemory provides an in-memory BinaryStore implementation. Data is held only in process memory: it is not persisted to disk and does not survive a process restart, and it is not shared across multiple instances of an application. It is useful for local development, testing, and demos where a durable object storage backend is not required.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInMemoryBinaryStore

func NewInMemoryBinaryStore(log logger.Logger) binarystore.BinaryStore

NewInMemoryBinaryStore returns a new in-memory BinaryStore.

Types

type InMemoryBinaryStore

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

InMemoryBinaryStore is an in-memory BinaryStore implementation.

func (*InMemoryBinaryStore) Close

func (s *InMemoryBinaryStore) Close() error

func (*InMemoryBinaryStore) Delete

func (*InMemoryBinaryStore) Features

func (s *InMemoryBinaryStore) Features() []binarystore.Feature

func (*InMemoryBinaryStore) Get

func (*InMemoryBinaryStore) GetComponentMetadata

func (s *InMemoryBinaryStore) GetComponentMetadata() (metadataInfo metadata.MetadataMap)

func (*InMemoryBinaryStore) Init

func (*InMemoryBinaryStore) Set

Jump to

Keyboard shortcuts

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