Documentation
¶
Index ¶
- Variables
- 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 DefaultPath = "cache"
View Source
var NotFoundError = errors.New("data not found")
Functions ¶
This section is empty.
Types ¶
type FileCache ¶
type FileCache struct {
}
func (*FileCache) DeleteMultiple ¶
func (*FileCache) GetMultiple ¶
Click to show internal directories.
Click to hide internal directories.