store

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 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 BaseStore

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

func New

func New(cache cache.Cache) (*BaseStore, error)

func NewWithTTL

func NewWithTTL(cache cache.Cache, ttl time.Duration) (*BaseStore, error)

func (*BaseStore) CheckGet

func (s *BaseStore) CheckGet(key string, options ...cache.Option) (string, error)

func (*BaseStore) CheckGetModel

func (s *BaseStore) CheckGetModel(key string, value interface{}, options ...cache.Option) error

func (*BaseStore) CheckGetModelT

func (s *BaseStore) CheckGetModelT(key string, value interface{}, trace trace.T) error

func (*BaseStore) CheckGetT

func (s *BaseStore) CheckGetT(key string, trace trace.T) (string, error)

func (*BaseStore) Del

func (s *BaseStore) Del(key string, options ...cache.Option) (int64, error)

func (*BaseStore) DelT

func (s *BaseStore) DelT(key string, trace trace.T) (int64, error)

func (*BaseStore) Exists

func (s *BaseStore) Exists(key string) (bool, error)

func (*BaseStore) Get

func (s *BaseStore) Get(key string, options ...cache.Option) (string, error)

func (*BaseStore) GetModel

func (s *BaseStore) GetModel(key string, value interface{}, options ...cache.Option) error

func (*BaseStore) GetModelT

func (s *BaseStore) GetModelT(key string, value interface{}, trace trace.T) error

func (*BaseStore) GetT

func (s *BaseStore) GetT(key string, trace trace.T) (string, error)

func (*BaseStore) Set

func (s *BaseStore) Set(key string, value interface{}, options ...cache.Option) error

func (*BaseStore) SetModel

func (s *BaseStore) SetModel(key string, value interface{}, options ...cache.Option) error

func (*BaseStore) SetModelT

func (s *BaseStore) SetModelT(key string, value interface{}, trace trace.T) error

func (*BaseStore) SetT

func (s *BaseStore) SetT(key string, value interface{}, trace trace.T) error

Jump to

Keyboard shortcuts

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