memory

package
v0.0.0-...-2e70a0d Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorInvalidCacheValueTypeHash = errors.New("invalid cache value type, expected map[string]interface{}")
)

Functions

func NewCacheRepository

func NewCacheRepository(redis *infrastructure.Redis) repository.CacheRepository

Types

type CacheRepositoryImpl

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

func (*CacheRepositoryImpl) Del

func (c *CacheRepositoryImpl) Del(key string) error

func (*CacheRepositoryImpl) Get

func (c *CacheRepositoryImpl) Get(key string) (result entity.Cache, err error)

func (*CacheRepositoryImpl) HGet

func (c *CacheRepositoryImpl) HGet(key, field string) (entity.Cache, error)

func (*CacheRepositoryImpl) HGetAll

func (c *CacheRepositoryImpl) HGetAll(key string) (entity.Cache, error)

func (*CacheRepositoryImpl) HSet

func (c *CacheRepositoryImpl) HSet(cache entity.Cache) error

func (*CacheRepositoryImpl) Set

func (c *CacheRepositoryImpl) Set(cache entity.Cache) error

Jump to

Keyboard shortcuts

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