Exemple #1
0
func NewARCache(size int) *base.BaseCache {
	arc := newCdbm()
	c := base.NewBaseCache(size, arc)
	return c
}
Exemple #2
0
func NewLRUCache(size int) *base.BaseCache {
	lru := newCdbm()
	c := base.NewBaseCache(size, lru)
	return c
}