memory

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

func NewRepository

func NewRepository() *Repository

func (*Repository) AddToBucket

func (r *Repository) AddToBucket(k string, v string, l int) error

func (*Repository) BatchAddToBuckets added in v1.0.0

func (r *Repository) BatchAddToBuckets(bucketKeys []string, value string, length int) error

func (*Repository) BatchGetBuckets added in v1.0.0

func (r *Repository) BatchGetBuckets(bucketKeys []string) (map[string][]string, map[string][]int, error)

func (*Repository) Close

func (r *Repository) Close()

func (*Repository) GetBucketMembers

func (r *Repository) GetBucketMembers(k string) ([]string, []int, error)

func (*Repository) GetRecords

func (r *Repository) GetRecords(ids []string) (map[string]model.Record, error)

func (*Repository) SaveRecord

func (r *Repository) SaveRecord(u model.Record) error

Jump to

Keyboard shortcuts

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