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