Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add adds a key/value pair to the cache only if the key doesn't already exist, or if the key has expired. Returns an error otherwise.
func Delete ¶
func Delete(key string)
Delete deletes a key/value pair by key from the cache whether it exists or not.
func Get ¶
Get gets a value by key from the cache. It returns the value and a boolean indicating whether the key was found in the cache.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.