cosmos-sdk/store/kv/mem
Aleksandr Bezobchuk 0867d0ac6c
feat(store/v2): handle store upgrades in RootStore (#18277)
Co-authored-by: cool-developer <51834436+cool-develope@users.noreply.github.com>
2023-11-01 18:09:54 +00:00
..
iterator.go chore(store/v2): move kv stores to kv sub-package (#18243) 2023-10-24 21:02:53 +00:00
README.md chore(store/v2): move kv stores to kv sub-package (#18243) 2023-10-24 21:02:53 +00:00
store_test.go feat(store/v2): handle store upgrades in RootStore (#18277) 2023-11-01 18:09:54 +00:00
store.go feat(store/v2): handle store upgrades in RootStore (#18277) 2023-11-01 18:09:54 +00:00

Memory KVStore

The mem.Store implementation defines an in-memory KVStore, which is internally backed by a thread-safe BTree. The mem.Store does not provide any branching functionality and should be used as an ephemeral store, typically reset between blocks. A mem.Store contains no reference to a parent store, but can be used as a parent store for other stores. The mem.Store is can be useful for testing purposes and where state persistence is not required or should be ephemeral.