store

package
v0.0.0-...-473e3f1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 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 {
}

func NewStore

func NewStore() Store

func (Store) Delete

func (s Store) Delete(ctx context.Context, req *v1.KeyReq) error

func (Store) Exist

func (s Store) Exist(ctx context.Context, key string) (bool, error)

func (Store) Expire

func (s Store) Expire(ctx context.Context, req *v1.ExpireReq) error

func (Store) Get

func (s Store) Get(ctx context.Context, key string) (string, error)

func (Store) Put

func (s Store) Put(ctx context.Context, req *v1.StorePutReq) error

func (Store) PutWithTTL

func (s Store) PutWithTTL(ctx context.Context, req *v1.StorePutWithTTLReq) error

func (Store) Stat

func (s Store) Stat(ctx context.Context) any

func (Store) Sync

func (s Store) Sync(ctx context.Context) error

func (Store) TTL

func (s Store) TTL(ctx context.Context, req *v1.KeyReq) (int64, error)

Jump to

Keyboard shortcuts

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