Documentation ¶
Overview ¶
Package cache provide caching systems for images.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache interface { Get(key string) ([]byte, error) Set(key string, val []byte, expiry time.Duration) error }
Cache Define cache system interface.
type MemoryCache ¶
type MemoryCache struct {
// contains filtered or unexported fields
}
MemoryCache in-memory cache system struct.
type NoneCache ¶
type NoneCache struct{}
NoneCache dummy cache system.
type RedisCache ¶
type RedisCache struct{} // client *redis.Client
RedisCache hold redis client.
Click to show internal directories.
Click to hide internal directories.