MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / NewList

Function NewList

internal/data/list.go:133–141  ·  view source on GitHub ↗
(listImpl ListImplementationType)

Source from the content-addressed store, hash-verified

131}
132
133func NewList(listImpl ListImplementationType) *List {
134 return &List{
135 Items: make(map[string]ListStructure),
136 TTL: make(map[string]uint32),
137 TimeStamp: make(map[string]uint64),
138 Seq: make(map[string]*HeadTailSeq),
139 ListImpl: listImpl,
140 }
141}
142
143// CreateListStructure creates a new list storage structure based on configuration.
144func (l *List) CreateListStructure() ListStructure {

Callers 15

GetWithDefaultMethod · 0.92
benchmarkListPushFunction · 0.92
benchmarkListPopFunction · 0.92
benchmarkListRangeFunction · 0.92
benchmarkListPeekFunction · 0.92
benchmarkListTrimFunction · 0.92
benchmarkListRemFunction · 0.92
benchmarkListRemByIndexFunction · 0.92
benchmarkListSizeFunction · 0.92
TestList_LPushFunction · 0.92
TestList_RPushFunction · 0.92
TestList_PopFunction · 0.92

Calls

no outgoing calls

Tested by 15

benchmarkListPushFunction · 0.74
benchmarkListPopFunction · 0.74
benchmarkListRangeFunction · 0.74
benchmarkListPeekFunction · 0.74
benchmarkListTrimFunction · 0.74
benchmarkListRemFunction · 0.74
benchmarkListRemByIndexFunction · 0.74
benchmarkListSizeFunction · 0.74
TestList_LPushFunction · 0.74
TestList_RPushFunction · 0.74
TestList_PopFunction · 0.74
TestList_LRemFunction · 0.74