Documentation
¶
Index ¶
- Constants
- type CacheMap
- func (s *CacheMap) Clear()
- func (s *CacheMap) Delete(key any)
- func (s *CacheMap) DeleteMulti(keys []any)
- func (s *CacheMap) Each(callback func(any, any) bool)
- func (s *CacheMap) EventCleaner() <-chan map[any]any
- func (s *CacheMap) Get(key any) (res any, check bool)
- func (s *CacheMap) GetCheck(key any, mCheck CallCheck) (res any, check bool)
- func (s *CacheMap) GetCreate(key any, mCreate CallCreate) (val any, check bool)
- func (s *CacheMap) GetCreateNew(key any, mCreateNew CallCreateNew) (rKey, val any, check bool)
- func (s *CacheMap) IsFinished() bool
- func (s *CacheMap) Keys() (res []any)
- func (s CacheMap) Len() (res int)
- func (s *CacheMap) Set(key, value any)
- func (s *CacheMap) SetMulti(m map[any]any)
- type CallCheck
- type CallCreate
- type CallCreateNew
Constants ¶
View Source
const (
LiveInfinite = time.Duration(-1)
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheMap ¶
type CacheMap struct {
// contains filtered or unexported fields
}
func (*CacheMap) DeleteMulti ¶
func (*CacheMap) Each ¶
Each implements a map bypass for each key using the callback function. If the callback function returns false, then the cycle stops
func (*CacheMap) EventCleaner ¶
func (*CacheMap) GetCreate ¶
func (s *CacheMap) GetCreate(key any, mCreate CallCreate) (val any, check bool)
func (*CacheMap) GetCreateNew ¶
func (s *CacheMap) GetCreateNew(key any, mCreateNew CallCreateNew) (rKey, val any, check bool)
func (*CacheMap) IsFinished ¶
type CallCreate ¶
type CallCreateNew ¶
Click to show internal directories.
Click to hide internal directories.