Documentation ¶
Index ¶
- type CStore
- func (cs *CStore) AnyContains(needle string) bool
- func (cs *CStore) AnyContainsReverse(haystack string) bool
- func (cs *CStore) Contains(key string) bool
- func (cs *CStore) Delete(key string)
- func (cs *CStore) Load(key string) (string, bool)
- func (cs *CStore) Size() int
- func (cs *CStore) Store(key, value string)
- func (cs *CStore) StoreKey(key string)
- func (cs *CStore) ToMap() map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CStore ¶
type CStore struct {
// contains filtered or unexported fields
}
CStore stands for ConcurrentStore and is simply an abstract of a map with a mutex.
func (*CStore) AnyContains ¶
AnyContains checks whether the passed needle is contained in any of the keys that the store has.
func (*CStore) AnyContainsReverse ¶
AnyContainsReverse checks whether any of the keys stored by the store is contained in the passed haystack
Click to show internal directories.
Click to hide internal directories.