arc

package
v0.0.0-...-34023c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2014 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewARCache

func NewARCache(size int) *base.BaseCache

func NewSafeARCache

func NewSafeARCache(size int) *base.BaseCache

Types

type ArcCdb

type ArcCdb struct {
	base.BaseCdb
	// contains filtered or unexported fields
}

type ArcCdbm

type ArcCdbm struct {
	*base.BasicCdbm
	// contains filtered or unexported fields
}

func (*ArcCdbm) Check

func (cdbm *ArcCdbm) Check()

func (*ArcCdbm) Collect

func (cdbm *ArcCdbm) Collect() map[string]CacheObject

func (*ArcCdbm) Find

func (cdbm *ArcCdbm) Find(key string) (base.CacheDirectoryBlock, error)

func (*ArcCdbm) MakeSpace

func (cdbm *ArcCdbm) MakeSpace(objectSize, sizeLimit int, f CacheCleanFunc) (base.CacheDirectoryBlock, error)

func (*ArcCdbm) Remove

func (cbdm *ArcCdbm) Remove(key string, f CacheCleanFunc) error

func (*ArcCdbm) Replace

func (cdbm *ArcCdbm) Replace(key string, object CacheObject, sizeLimit int, f CacheCleanFunc) error

func (*ArcCdbm) Reset

func (cdbm *ArcCdbm) Reset(f CacheCleanFunc)

type CdbList

type CdbList struct {
	// contains filtered or unexported fields
}

func NewCdbList

func NewCdbList() *CdbList

func (*CdbList) Len

func (cl *CdbList) Len() int

func (*CdbList) MoveToBack

func (cl *CdbList) MoveToBack(e *list.Element)

func (*CdbList) PushBack

func (cl *CdbList) PushBack(cdb base.CacheDirectoryBlock) *list.Element

func (*CdbList) Remove

func (cl *CdbList) Remove(e *list.Element) base.CacheDirectoryBlock

func (*CdbList) RemoveLRU

func (cl *CdbList) RemoveLRU() base.CacheDirectoryBlock

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL