Decentralized Durability Engine
Go to file
Eric Mastro 70cbdff901
feat: introduce LRU cache (#50)
* feat: introduce LRU cache

Replace `MemoryStore` with LRU caching mechanism.

`lrucache` library was forked to https://github.com/status-im/lrucache.nim.

Co-authored-by: Eric Mastro <eric.mastro@gmail.com>

# Conflicts:
#	dagger/dagger.nim
#	dagger/stores.nim
#	dagger/stores/manager.nim
#	tests/dagger/blockexc/testengine.nim
#	tests/dagger/helpers/nodeutils.nim
#	tests/dagger/testnode.nim
#	tests/dagger/teststores.nim

* feat: introduce --cache-size CLI option

Allow for a value of `0` to disable the cache.

# Conflicts:
#	dagger/dagger.nim

* allow dynamic block size in cache

allow block size to be variable/dynamic

update lrucache to use updated lrucache dep

Using removeLru proc, added tests

* Refactor CacheStore init block

Co-authored-by: Michael Bradley, Jr <michaelsbradleyjr@gmail.com>
2022-03-02 10:30:42 -06:00
.github/workflows don't run win i386 tests 2021-11-25 09:37:12 +01:00
dagger feat: introduce LRU cache (#50) 2022-03-02 10:30:42 -06:00
tests feat: introduce LRU cache (#50) 2022-03-02 10:30:42 -06:00
vendor feat: introduce LRU cache (#50) 2022-03-02 10:30:42 -06:00
.editorconfig Project setup 2021-02-02 19:29:52 +01:00
.gitignore feat: integrate dagger contracts 2022-02-04 15:34:56 +11:00
.gitmodules feat: introduce LRU cache (#50) 2022-03-02 10:30:42 -06:00
.tool-versions Poc 2 (#7) 2021-02-25 18:23:22 -06:00
Makefile adding nimbus build system 2021-11-25 09:37:12 +01:00
config.nims Node setup (#32) 2022-01-10 09:32:56 -06:00
dagger.nim Node setup (#32) 2022-01-10 09:32:56 -06:00
dagger.nimble feat: introduce LRU cache (#50) 2022-03-02 10:30:42 -06:00
env.sh add env.sh shim to project root (#34) 2021-12-20 13:12:18 -06:00
nim.cfg Disable ObservableStores warning 2021-11-16 16:51:24 +01:00