Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Stop() Store(key string, value interface{}) Expire(key string, t time.Time) StoreExpiry(key string, value interface{}, expiry time.Time) Get(key string) (interface{}, bool) StoreOrGet(key string, value interface{}) (interface{}, bool) StoreOrGetExpire(key string, value interface{}, expiry time.Time) (interface{}, bool) Merge(item CacheItem) (interface{}, bool) Delete(key string) GetDelete(key string) (interface{}, bool) ItemsArray() []CacheItem Items() map[string]CacheItem }
type CacheArray ¶
type CacheArray interface { Stop() Store(key string, secondKey string, value interface{}) StoreExpiry(key string, secondKey string, value interface{}, expiry time.Time) Get(key string) ([]interface{}, bool) GetFirst(key string) (interface{}, bool) Delete(key string, secondKey string) ItemsArray() []CacheArrayItem Items() map[string]CacheArrayItem }
type CacheArrayItem ¶
type CacheArrayItem struct { Key string Items []CacheItem // contains filtered or unexported fields }
func (CacheArrayItem) Expired ¶
func (c CacheArrayItem) Expired() bool
Click to show internal directories.
Click to hide internal directories.