nim-codex/dagger
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
..
blockexchange Minor cleanup and update deps (#42) 2022-01-12 16:19:37 -06:00
contracts feat: integrate dagger contracts 2022-02-04 15:34:56 +11:00
rest [rest api]: improve exception handling for `/connect` and add `content-type` header for `/download` 2022-02-04 15:38:39 +11:00
stores feat: introduce LRU cache (#50) 2022-03-02 10:30:42 -06:00
utils Node setup (#32) 2022-01-10 09:32:56 -06:00
blockexchange.nim Rename bitswap (#25) 2021-08-30 13:25:20 -06:00
blocksmanifest.nim cleanup manifest (#44) 2022-01-12 19:55:51 -06:00
blocktype.nim Block.init should return Result (#37) 2022-01-10 20:25:13 -06:00
chunker.nim feat: introduce LRU cache (#50) 2022-03-02 10:30:42 -06:00
conf.nim feat: introduce LRU cache (#50) 2022-03-02 10:30:42 -06:00
contracts.nim feat: integrate dagger contracts 2022-02-04 15:34:56 +11:00
dagger.nim feat: introduce LRU cache (#50) 2022-03-02 10:30:42 -06:00
errors.nim Node setup (#32) 2022-01-10 09:32:56 -06:00
manifest.nim cleanup manifest (#44) 2022-01-12 19:55:51 -06:00
node.nim cleanup manifest (#44) 2022-01-12 19:55:51 -06:00
rng.nim Rename bitswap (#25) 2021-08-30 13:25:20 -06:00
stores.nim feat: introduce LRU cache (#50) 2022-03-02 10:30:42 -06:00