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