Documentation ¶
Overview ¶
Package memory provides an in-memory Image Cache.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is an in-memory Image Cache.
It uses an LRU implementation from https://github.com/pierrre/lrucache (copy of https://github.com/youtube/vitess/tree/master/go/cache) .
func (*Cache) Get ¶
func (cache *Cache) Get(key string, params imageserver.Params) (*imageserver.Image, error)
Get implements Cache.
func (*Cache) Set ¶
func (cache *Cache) Set(key string, image *imageserver.Image, params imageserver.Params) error
Set implements Cache.
Click to show internal directories.
Click to hide internal directories.