示例#1
0
文件: cdb.go 项目: zj8487/go-cache-2
func newCdbm() *ArcCdbm {
	cdbm := &ArcCdbm{}
	cdbm.BasicCdbm = base.NewBasicCdbm()
	cdbm.t1 = NewCdbList()
	cdbm.b1 = NewCdbList()
	cdbm.t2 = NewCdbList()
	cdbm.b2 = NewCdbList()
	return cdbm
}
示例#2
0
文件: cdb.go 项目: zj8487/go-cache-2
func newCdbm() *LruCdbm {
	cdbm := &LruCdbm{}
	cdbm.BasicCdbm = base.NewBasicCdbm()
	cdbm.cdbs = list.New()
	return cdbm
}