Versions in this module Expand all Collapse all v1 v1.0.0 Mar 3, 2023 Changes in this version + type Cache struct + func New(name string, initializer EntryInitializer, opts ...options.Opt) *Cache + func NewWithData(name string, initializer EntryInitializerWithData, opts ...options.Opt) *Cache + func (c *Cache) Close() + func (c *Cache) Delete(key Key) + func (c *Cache) DeleteAll() + func (c *Cache) Get(key Key, data ...interface{}) (interface{}, error) + func (c *Cache) IsClosed() bool + func (c *Cache) MustGet(key Key) interface{} + func (c *Cache) Name() string + type EntryInitializer func(key Key) (interface{}, error) + type EntryInitializerWithData func(key Key, data interface{}) (interface{}, error) + type Key interface + String func() string + type StringKey struct + func NewStringKey(key string) *StringKey + func (k *StringKey) String() string