Documentation ¶
Overview ¶
Package redis provides a Redis imageserver/cache.Cache implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct { Client redis.UniversalClient // Expire is an optional expiration duration. Expire time.Duration }
Cache is a Redis imageserver/cache.Cache implementation.
It uses https://github.com/go-redis/redis .
func (*Cache) Get ¶
func (cache *Cache) Get(key string, params imageserver.Params) (*imageserver.Image, error)
Get implements imageserver/cache.Cache.
func (*Cache) Set ¶
func (cache *Cache) Set(key string, im *imageserver.Image, params imageserver.Params) error
Set implements imageserver/cache.Cache.
Click to show internal directories.
Click to hide internal directories.