Items returns all items as map[string]interface{}
()
| 381 | |
| 382 | // Items returns all items as map[string]interface{} |
| 383 | func (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 |
| 394 | func (slm ShardLockMaps) Keys() []string { |