Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheStore ¶
type CacheStore interface { Get(key string) (interface{}, error) Has(key string) bool Put(key string, value interface{}, expiration time.Duration) }
CacheStore represents a way to cache
type FileStore ¶
FileStore uses the local filesystem.
func NewFileStore ¶
func NewFileStore() FileStore
NewFileStore uses `caddy.AppDataDir()` to get a location to store the cached files.
type RedisStore ¶
RedisStore uses Redis
func NewRedisStore ¶
func NewRedisStore(addr string) RedisStore
NewRedisStore creates a new RedisStore
func (RedisStore) Get ¶
func (r RedisStore) Get(key string) (interface{}, error)
Get value from Redis.
Click to show internal directories.
Click to hide internal directories.