MCPcopy
hub / github.com/aceld/zinx / Items

Method Items

zutils/shard_lock_map.go:383–391  ·  view source on GitHub ↗

Items returns all items as map[string]interface{}

()

Source from the content-addressed store, hash-verified

381
382// Items returns all items as map[string]interface{}
383func (slm ShardLockMaps) Items() map[string]interface{} {
384 tmp := make(map[string]interface{})
385
386 for item := range slm.IterBuffered() {
387 tmp[item.Key] = item.Val
388 }
389
390 return tmp
391}
392
393// Keys returns all keys as []string
394func (slm ShardLockMaps) Keys() []string {

Callers 2

BenchmarkItemsFunction · 0.95
TestItemsFunction · 0.95

Calls 1

IterBufferedMethod · 0.95

Tested by 2

BenchmarkItemsFunction · 0.76
TestItemsFunction · 0.76