Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheValue ¶
type CacheValue struct {
// contains filtered or unexported fields
}
Adding a struct if in future we need a cleanup routine
type GlobalCache ¶
type GlobalCache interface { Set(key string, value int) Get(key string) (int, bool) Delete(key string) }
func Get ¶
func Get() GlobalCache
func New ¶
func New() GlobalCache
type GlobalCacheMap ¶
type GlobalCacheMap struct {
// contains filtered or unexported fields
}
func (*GlobalCacheMap) Delete ¶
func (c *GlobalCacheMap) Delete(key string)
func (*GlobalCacheMap) Set ¶
func (c *GlobalCacheMap) Set(key string, value int)
Click to show internal directories.
Click to hide internal directories.