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

inmemory

package
v0.60.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

inmemory contains an implementation of the Radius data store interface that stores data in memory. This is suitable for testing and development purposes. The in-memory store has no persistence and will be **SLOW** for large data sets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is an in-memory implementation of database.Client.

func NewClient

func NewClient() *Client

NewClient creates a new in-memory store client.

func (*Client) Clear

func (c *Client) Clear()

Clear can be used to clear all stored data.

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, id string, options ...database.DeleteOptions) error

Delete implements database.Client.

func (*Client) Get

func (c *Client) Get(ctx context.Context, id string, options ...database.GetOptions) (*database.Object, error)

Get implements database.Client.

func (*Client) Query

Query implements database.Client.

func (*Client) Save

func (c *Client) Save(ctx context.Context, obj *database.Object, options ...database.SaveOptions) error

Save implements database.Client.

Jump to

Keyboard shortcuts

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