Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheEntry ¶ added in v0.1.0
type CacheEntry struct {
// contains filtered or unexported fields
}
CacheEntry is a value stored in the cache.
type Config ¶
type Memory ¶ added in v0.1.0
type Memory struct {
// contains filtered or unexported fields
}
Memory is a thread-safe cache.
func (*Memory) CleanUp ¶ added in v0.1.0
func (sc *Memory) CleanUp()
CleanUp periodically removes expired entries from the cache.
func (*Memory) Get ¶ added in v0.1.0
Get retrieves a value from the cache. If the value is not found or has expired, it returns false.
Click to show internal directories.
Click to hide internal directories.