Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FreeCache ¶
type FreeCache struct {
// contains filtered or unexported fields
}
func NewFreeCache ¶
NewFreeCache Create a new cache instance, but the internal cache instances are shared, and they will only be initialized once.
func (*FreeCache) UseRandomizedTTL ¶
type Local ¶
type Local interface { // Set stores the given data with the specified key. Set(key string, data []byte) // Get retrieves the data associated with the specified key. // It returns the data and a boolean indicating whether the key was found. Get(key string) ([]byte, bool) // Del deletes the data associated with the specified key. Del(key string) }
type TinyLFU ¶
type TinyLFU struct {
// contains filtered or unexported fields
}
func (*TinyLFU) UseRandomizedTTL ¶
Click to show internal directories.
Click to hide internal directories.