()
| 31 | var ErrorNoSuchKey = errors.New("no such key") |
| 32 | |
| 33 | func NewKeyValueStore() *KeyValueStore { |
| 34 | return &KeyValueStore{ |
| 35 | m: make(map[string]string), |
| 36 | transact: ZeroTransactionLogger{}, |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | func (store *KeyValueStore) Delete(key string) error { |
| 41 | store.Lock() |
no outgoing calls