Documentation ¶ Index ¶ Constants Variables type Cache func New(size int) (*Cache, error) func NewFromURL(url *url.URL) (*Cache, error) func (cache *Cache) Delete(key string) error func (cache *Cache) Get(key string) ([]byte, error) func (cache *Cache) Set(key string, value []byte) error Constants ¶ View Source const Scheme = "lrucache" Variables ¶ View Source var ErrInitializationFailed = errors.New(fmt.Sprintf("%s: failed to initialize", Scheme)) Functions ¶ This section is empty. Types ¶ type Cache ¶ type Cache struct { // contains filtered or unexported fields } func New ¶ func New(size int) (*Cache, error) func NewFromURL ¶ func NewFromURL(url *url.URL) (*Cache, error) func (*Cache) Delete ¶ func (cache *Cache) Delete(key string) error func (*Cache) Get ¶ func (cache *Cache) Get(key string) ([]byte, error) func (*Cache) Set ¶ func (cache *Cache) Set(key string, value []byte) error Source Files ¶ View all Source files lrucache.go Click to show internal directories. Click to hide internal directories.