Documentation
¶
Index ¶
- Variables
- func NewCacheRepository(redis *infrastructure.Redis) repository.CacheRepository
- type CacheRepositoryImpl
- func (c *CacheRepositoryImpl) Del(key string) error
- func (c *CacheRepositoryImpl) Get(key string) (result entity.Cache, err error)
- func (c *CacheRepositoryImpl) HGet(key, field string) (entity.Cache, error)
- func (c *CacheRepositoryImpl) HGetAll(key string) (entity.Cache, error)
- func (c *CacheRepositoryImpl) HSet(cache entity.Cache) error
- func (c *CacheRepositoryImpl) Set(cache entity.Cache) error
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)
Click to show internal directories.
Click to hide internal directories.