Documentation
¶
Index ¶
- Variables
- func New() cacher.Cacher
- type FileCache
- func (f *FileCache) Clear() error
- func (f *FileCache) Delete(key string) error
- func (f *FileCache) DeleteMultiple(keys ...string) error
- func (f FileCache) Get(key string) ([]byte, error)
- func (f FileCache) GetD(key string, v []byte) []byte
- func (f *FileCache) GetMultiple(keys ...string) (map[string][]byte, error)
- func (f *FileCache) Has(key string) (bool, error)
- func (f *FileCache) Set(key string, val []byte) error
- func (f *FileCache) SetMultiple(values map[string][]byte) error
- func (f *FileCache) SetWithTTL(key string, val []byte, ttl int64) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCachePath = "cache"
DefaultCachePath ...
View Source
var ErrNotFound = errors.New("data not found")
ErrNotFound ...
Functions ¶
Types ¶
type FileCache ¶
type FileCache struct {
// contains filtered or unexported fields
}
FileCache ...
func (*FileCache) DeleteMultiple ¶
DeleteMultiple ...
func (*FileCache) GetMultiple ¶
GetMultiple ...
func (*FileCache) SetMultiple ¶
SetMultiple ...
Click to show internal directories.
Click to hide internal directories.