Documentation
¶
Overview ¶
The file cache driver implementation for the cache package.
Index ¶
- type FileStore
- func (f *FileStore) Decrement(key string, value int) int
- func (f *FileStore) Flush() bool
- func (f *FileStore) Forever(key string, value interface{})
- func (f *FileStore) Forget(key string) bool
- func (f *FileStore) Get(key string) interface{}
- func (f *FileStore) Increment(key string, value int) int
- func (f *FileStore) Many(keys []string) map[string]interface{}
- func (f *FileStore) Put(key string, value interface{}, seconds int)
- func (f *FileStore) PutMany(values map[string]interface{}, seconds int)
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileStore ¶
type FileStore struct {
// contains filtered or unexported fields
}
func NewFileStore ¶
type Store ¶
type Store interface {
Get(key string) interface{}
Many(keys []string) map[string]interface{}
Put(key string, value interface{}, seconds int)
PutMany(values map[string]interface{}, seconds int)
Increment(key string, value int) int
Decrement(key string, value int) int
Forever(key string, value interface{})
Forget(key string) bool
Flush() bool
GetPrefix() string
}
Click to show internal directories.
Click to hide internal directories.