Documentation ¶
Overview ¶
Generic storage for garbage collected entries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCStore ¶
type GCStore interface { // Put a key-value into the store. Keys must be comparable. Put(key, value interface{}) // Gets the value of a specified key. If the key is not present, // nil is returned. Get(key interface{}) interface{} }
Garbage collected key-value store. Items that are not accessed after a certain amount of time are garbage collected. Keys must be comparable.
Implementation is thread-safe.
Click to show internal directories.
Click to hide internal directories.