cosmos-sdk/store/memkv
Aleksandr Bezobchuk 03bca7b791
feat(store/v2): Merge Feature Branch (#18150)
Co-authored-by: cool-developer <51834436+cool-develope@users.noreply.github.com>
Co-authored-by: yihuang <huang@crypto.com>
2023-10-18 18:03:43 +00:00
..
iterator.go feat(store/v2): Merge Feature Branch (#18150) 2023-10-18 18:03:43 +00:00
README.md feat(store/v2): Merge Feature Branch (#18150) 2023-10-18 18:03:43 +00:00
store_test.go feat(store/v2): Merge Feature Branch (#18150) 2023-10-18 18:03:43 +00:00
store.go feat(store/v2): Merge Feature Branch (#18150) 2023-10-18 18:03:43 +00:00

memkv

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