mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-06 17:26:52 +08:00
refactor project structure
This commit is contained in:
15
util_test.go
Normal file
15
util_test.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package godis
|
||||
|
||||
import (
|
||||
"github.com/hdt3213/godis/datastruct/dict"
|
||||
"github.com/hdt3213/godis/datastruct/lock"
|
||||
)
|
||||
|
||||
func makeTestDB() *DB {
|
||||
return &DB{
|
||||
data: dict.MakeConcurrent(1),
|
||||
ttlMap: dict.MakeConcurrent(ttlDictSize),
|
||||
locker: lock.Make(lockerSize),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user