Documentation
¶
Index ¶
- func NewARCache(size int) *base.BaseCache
- func NewSafeARCache(size int) *base.BaseCache
- type ArcCdb
- type ArcCdbm
- func (cdbm *ArcCdbm) Check()
- func (cdbm *ArcCdbm) Collect() map[string]CacheObject
- func (cdbm *ArcCdbm) Find(key string) (base.CacheDirectoryBlock, error)
- func (cdbm *ArcCdbm) MakeSpace(objectSize, sizeLimit int, f CacheCleanFunc) (base.CacheDirectoryBlock, error)
- func (cbdm *ArcCdbm) Remove(key string, f CacheCleanFunc) error
- func (cdbm *ArcCdbm) Replace(key string, object CacheObject, sizeLimit int, f CacheCleanFunc) error
- func (cdbm *ArcCdbm) Reset(f CacheCleanFunc)
- type CdbList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewARCache ¶
func NewSafeARCache ¶
Types ¶
type ArcCdbm ¶
func (*ArcCdbm) MakeSpace ¶
func (cdbm *ArcCdbm) MakeSpace(objectSize, sizeLimit int, f CacheCleanFunc) (base.CacheDirectoryBlock, error)
type CdbList ¶
type CdbList struct {
// contains filtered or unexported fields
}
func NewCdbList ¶
func NewCdbList() *CdbList
func (*CdbList) MoveToBack ¶
func (*CdbList) RemoveLRU ¶
func (cl *CdbList) RemoveLRU() base.CacheDirectoryBlock
Click to show internal directories.
Click to hide internal directories.