Documentation
¶
Index ¶
- func RunCustomCache(numberOfKeysI int, opsPerWorkerI int, allowedCacheSizeMBI int)
- func RunCustomFastCache(numberOfKeysI int, opsPerWorkerI int, allowedCacheSizeMBI int)
- func RunFreeCache(numberOfKeysI int, opsPerWorkerI int, allowedCacheSizeMBI int)
- func RunGoCache(numberOfKeysI int, opsPerWorkerI int, allowedCacheSizeMBI int)
- func RunRistretto(numberOfKeysI int, opsPerWorkerI int, allowedCacheSizeMBI int)
- type CustomCache
- type CustomFastCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunCustomCache ¶
func RunCustomFastCache ¶
func RunFreeCache ¶
func RunGoCache ¶
func RunRistretto ¶
Types ¶
type CustomCache ¶
This is my very simple cache. I was surprised how well it works.
func NewCustomSimpleCache ¶
func NewCustomSimpleCache(maxsizeMB int) *CustomCache
func (*CustomCache) Del ¶
func (c *CustomCache) Del(key string) bool
func (*CustomCache) Set ¶
func (c *CustomCache) Set(key string, value []byte)
type CustomFastCache ¶
This is my very simple cache. I was surprised how well it works.
func NewCustomFastCache ¶
func NewCustomFastCache(maxsizeMB int) *CustomFastCache
func (*CustomFastCache) Del ¶
func (c *CustomFastCache) Del(key string) bool
func (*CustomFastCache) Set ¶
func (c *CustomFastCache) Set(key string, value []byte)
Click to show internal directories.
Click to hide internal directories.