memory

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func New

func New() *Store

func (*Store) Close

func (m *Store) Close() error

func (*Store) Del

func (m *Store) Del(_ context.Context, keys ...string) error

func (*Store) Delete

func (m *Store) Delete(_ context.Context, keys []string) error

func (*Store) Exists

func (m *Store) Exists(_ context.Context, keys ...string) (int64, error)

func (*Store) Expire

func (m *Store) Expire(_ context.Context, key string, ttl time.Duration) error

func (*Store) Get

func (m *Store) Get(_ context.Context, key string) (string, error)

func (*Store) Gets

func (m *Store) Gets(_ context.Context, keys []string) (map[string]string, []string)

func (*Store) Incr

func (m *Store) Incr(_ context.Context, key string) (int64, error)

func (*Store) Set

func (m *Store) Set(_ context.Context, key, value string, ttl time.Duration) error

func (*Store) Sets

func (m *Store) Sets(_ context.Context, values map[string]string, ttl time.Duration) error

func (*Store) TTL

func (m *Store) TTL(_ context.Context, key string) (time.Duration, error)

Jump to

Keyboard shortcuts

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