MCPcopy Create free account
hub / github.com/aceld/zinx / MGet

Method MGet

zutils/shard_lock_map.go:301–309  ·  view source on GitHub ↗

MGet retrieves multiple elements from the map.

(keys ...string)

Source from the content-addressed store, hash-verified

299
300// MGet retrieves multiple elements from the map.
301func (slm ShardLockMaps) MGet(keys ...string) map[string]interface{} {
302 data := make(map[string]interface{})
303 for _, key := range keys {
304 if val, ok := slm.Get(key); ok {
305 data[key] = val
306 }
307 }
308 return data
309}
310
311// GetAll returns a copy of all items in the map.
312func (slm ShardLockMaps) GetAll() map[string]interface{} {

Callers 1

TestMGetFunction · 0.95

Calls 1

GetMethod · 0.95

Tested by 1

TestMGetFunction · 0.76