Documentation
¶
Index ¶
- type MemoryCacheValue
- type MemoryCacher
- func (cacher *MemoryCacher) Delete(key string) error
- func (cacher *MemoryCacher) Get(key string) (dinfra.CacheValue, error)
- func (cacher *MemoryCacher) GetH(key string, index string) (dinfra.CacheValue, error)
- func (cacher *MemoryCacher) Lock(key string)
- func (cacher *MemoryCacher) Set(key string, value any, expire int64) error
- func (cacher *MemoryCacher) SetH(key string, values map[string]any, expire int64) error
- func (cacher *MemoryCacher) Unlock(key string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryCacheValue ¶
type MemoryCacheValue struct {
// contains filtered or unexported fields
}
type MemoryCacher ¶
type MemoryCacher struct {
// contains filtered or unexported fields
}
func New ¶
func New() *MemoryCacher
func (*MemoryCacher) Delete ¶
func (cacher *MemoryCacher) Delete(key string) error
func (*MemoryCacher) Get ¶
func (cacher *MemoryCacher) Get(key string) (dinfra.CacheValue, error)
func (*MemoryCacher) GetH ¶
func (cacher *MemoryCacher) GetH(key string, index string) (dinfra.CacheValue, error)
func (*MemoryCacher) Lock ¶
func (cacher *MemoryCacher) Lock(key string)
func (*MemoryCacher) Set ¶
func (cacher *MemoryCacher) Set(key string, value any, expire int64) error
func (*MemoryCacher) Unlock ¶
func (cacher *MemoryCacher) Unlock(key string)
Click to show internal directories.
Click to hide internal directories.