Documentation ¶
Index ¶
- type CallCheck
- type CallCreate
- type CallCreateMulti
- type Store
- func (s *Store) Clear()
- func (s *Store) Delete(key any) (any, bool)
- func (s *Store) DeleteMulti(keys []any)
- func (s *Store) Each(callback func(any, any) bool)
- func (s *Store) Get(key any) (val any, check bool)
- func (s *Store) GetCheck(key any, mCheck CallCheck) (res any, check bool)
- func (s *Store) GetCreate(key any, mCreate CallCreate) (res any, check bool)
- func (s *Store) GetCreateMulti(key any, mCreateMulti CallCreateMulti) (res any, check bool)
- func (s *Store) Keys() (res []any)
- func (s *Store) Len() (res int)
- func (s *Store) Map() (res map[any]any)
- func (s *Store) Set(key, val any)
- func (s *Store) SetMulti(m map[any]any)
- type StoreString
- func (s *StoreString) Clear()
- func (s *StoreString) Delete(key string) (any, bool)
- func (s *StoreString) DeleteMulti(keys []string)
- func (s *StoreString) Each(callback func(string, interface{}) bool)
- func (s *StoreString) Get(key string) (val interface{}, check bool)
- func (s *StoreString) GetCheck(key string, mCheck StringCallCheck) (res interface{}, check bool)
- func (s *StoreString) GetCreate(key string, mCreate StringCallCreate) (res interface{}, check bool)
- func (s *StoreString) GetCreateMulti(key string, mCreateMulti StringCallCreateMulti) (res interface{}, check bool)
- func (s *StoreString) Keys() (res []string)
- func (s *StoreString) Len() (res int)
- func (s *StoreString) Map() (res map[string]interface{})
- func (s *StoreString) Set(key string, val interface{})
- func (s *StoreString) SetMulti(m map[string]interface{})
- type StringCallCheck
- type StringCallCreate
- type StringCallCreateMulti
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallCreate ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) DeleteMulti ¶
func (*Store) Each ¶
Each implements a map bypass for each key using the callback function. If the callback function returns false, then the cycle stops
func (*Store) GetCreate ¶
func (s *Store) GetCreate(key any, mCreate CallCreate) (res any, check bool)
func (*Store) GetCreateMulti ¶
func (s *Store) GetCreateMulti(key any, mCreateMulti CallCreateMulti) (res any, check bool)
type StoreString ¶
type StoreString struct {
// contains filtered or unexported fields
}
func StringFromMap ¶
func StringFromMap(m map[string]interface{}) *StoreString
func StringNew ¶
func StringNew() *StoreString
func (*StoreString) Clear ¶
func (s *StoreString) Clear()
func (*StoreString) DeleteMulti ¶
func (s *StoreString) DeleteMulti(keys []string)
func (*StoreString) Each ¶
func (s *StoreString) Each(callback func(string, interface{}) bool)
Each implements a map bypass for each key using the callback function. If the callback function returns false, then the cycle stops
func (*StoreString) Get ¶
func (s *StoreString) Get(key string) (val interface{}, check bool)
func (*StoreString) GetCheck ¶
func (s *StoreString) GetCheck(key string, mCheck StringCallCheck) (res interface{}, check bool)
func (*StoreString) GetCreate ¶
func (s *StoreString) GetCreate(key string, mCreate StringCallCreate) (res interface{}, check bool)
func (*StoreString) GetCreateMulti ¶
func (s *StoreString) GetCreateMulti(key string, mCreateMulti StringCallCreateMulti) (res interface{}, check bool)
func (*StoreString) Keys ¶
func (s *StoreString) Keys() (res []string)
func (*StoreString) Len ¶
func (s *StoreString) Len() (res int)
func (*StoreString) Map ¶
func (s *StoreString) Map() (res map[string]interface{})
func (*StoreString) Set ¶
func (s *StoreString) Set(key string, val interface{})
func (*StoreString) SetMulti ¶
func (s *StoreString) SetMulti(m map[string]interface{})
type StringCallCheck ¶
type StringCallCreate ¶
type StringCallCreateMulti ¶
Click to show internal directories.
Click to hide internal directories.