Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExplorerCache ¶
type ExplorerCache struct {
// contains filtered or unexported fields
}
func (*ExplorerCache) ExpirationCheck ¶
func (c *ExplorerCache) ExpirationCheck()
loop for checking items expiration
func (*ExplorerCache) Get ¶
func (c *ExplorerCache) Get(key interface{}, callback func() interface{}, ttl time.Duration) interface{}
get or store value from cache
func (*ExplorerCache) Store ¶
func (c *ExplorerCache) Store(key interface{}, value interface{}, ttl time.Duration) interface{}
save value to cache
Click to show internal directories.
Click to hide internal directories.