Documentation
¶
Index ¶
- Constants
- type Cache
- func (c *Cache) Add(key string, size int64)
- func (c *Cache) AddWithData(key, data string, size int64)
- func (c *Cache) Get(key string) Item
- func (c *Cache) LoadCacheRecords(fpath string) error
- func (c *Cache) LoadCacheRecordsWithFiles(dir string) error
- func (c *Cache) RegisterSwapoutCallbacksCallbacks(handles ...func(Item))
- func (c Cache) RemoveItem(key string)
- func (c *Cache) SaveCacheRecords(fpath string) error
- func (c *Cache) Status() Info
- type Info
- type Item
Constants ¶
View Source
const (
DEFAULT_LIMIT_SIZE = 2 * 1014 * 1024 * 1024 * 1024
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) AddWithData ¶
func (*Cache) LoadCacheRecords ¶
func (*Cache) LoadCacheRecordsWithFiles ¶
func (*Cache) RegisterSwapoutCallbacksCallbacks ¶
func (Cache) RemoveItem ¶
func (*Cache) SaveCacheRecords ¶
Click to show internal directories.
Click to hide internal directories.