Versions in this module Expand all Collapse all v1 v1.0.0 Jan 6, 2021 Changes in this version + func AnyKey(k interface{}) uint64 + func ByteKey(k byte) uint64 + func BytesKey(k []byte) uint64 + func Int16Key(k int16) uint64 + func Int32Key(k int32) uint64 + func Int64Key(k int64) uint64 + func Int8Key(k int8) uint64 + func IntKey(k int) uint64 + func StringKey(k string) uint64 + func Uint16Key(k uint16) uint64 + func Uint32Key(k uint32) uint64 + func Uint64Key(k uint64) uint64 + func Uint8Key(k uint8) uint64 + type Cache struct + func New(resolution time.Duration) *Cache + func (c *Cache) Close() error + func (c *Cache) Delete(key uint64) + func (c *Cache) Get(key uint64) (interface{}, bool) + func (c *Cache) Set(key uint64, value interface{}, ttl time.Duration)