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