Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File is a degrade file service.
type Memcache ¶
type Memcache struct {
// contains filtered or unexported fields
}
Memcache represents the cache with memcached persistence
type Store ¶
type Store interface { // Get retrieves an item from the cache. Returns the item or nil, and a bool indicating // whether the key was found. Get(ctx context.Context, key string) ([]byte, error) // Set sets an item to the cache, replacing any existing item. Set(ctx context.Context, key string, value []byte, expire int32) error }
Store is the interface of a cache backend
Click to show internal directories.
Click to hide internal directories.