MSet Sets the given value under the specified key.
(data map[string]interface{})
| 120 | |
| 121 | // MSet Sets the given value under the specified key. |
| 122 | func (slm ShardLockMaps) MSet(data map[string]interface{}) { |
| 123 | for key, value := range data { |
| 124 | shard := slm.GetShard(key) |
| 125 | shard.Lock() |
| 126 | shard.items[key] = value |
| 127 | shard.Unlock() |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | // Has Looks up an item under specified key |
| 132 | func (slm ShardLockMaps) Has(key string) bool { |