Documentation ¶
Overview ¶
Package cache contains facilities for caching immutable files, typically for a cloud object store.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalCache ¶
func NewLocalCache ¶
func NewLocalCache(engine storage.Engine, cacheable Cacheable, size int, registerer prometheus.Registerer) (*LocalCache, error)
type RedisCache ¶
func NewRedisCache ¶
func NewRedisCache(engine storage.Engine, client *redis.Client, cacheable Cacheable, expiration time.Duration, reg prometheus.Registerer) *RedisCache
Click to show internal directories.
Click to hide internal directories.