NewMemoryKeyValue returns a KeyValue implementation that's backed only by memory. It's mostly useful for tests and development.
()
| 31 | // NewMemoryKeyValue returns a KeyValue implementation that's backed only |
| 32 | // by memory. It's mostly useful for tests and development. |
| 33 | func NewMemoryKeyValue() KeyValue { |
| 34 | kv := new(memKeys) |
| 35 | kv.Wipe() |
| 36 | return kv |
| 37 | } |
| 38 | |
| 39 | var _ Wiper = (*memKeys)(nil) |
| 40 |