nim-codex/vendor
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
..
asynctest@3882ed64ed adding submodules 2021-11-25 09:37:12 +01:00
bearssl@acc70b1be6 adding submodules 2021-11-25 09:37:12 +01:00
combparser@ba4464c005 adding submodules 2021-11-25 09:37:12 +01:00
dagger-contracts@41fd33ac7a feat: integrate dagger contracts 2022-02-04 15:34:56 +11:00
dnsclient.nim@536cc6b793 Node setup (#32) 2022-01-10 09:32:56 -06:00
lrucache.nim@717abe4e61 feat: introduce LRU cache (#50) 2022-03-02 10:30:42 -06:00
nim-bearssl@dc62f4fccd adding submodules 2021-11-25 09:37:12 +01:00
nim-chronicles@1682096306 Minor cleanup and update deps (#42) 2022-01-12 16:19:37 -06:00
nim-chronos@17fed89c99 Minor cleanup and update deps (#42) 2022-01-12 16:19:37 -06:00
nim-confutils@0435e67832 Minor cleanup and update deps (#42) 2022-01-12 16:19:37 -06:00
nim-contract-abi@a2b8daa320 feat: integrate dagger contracts 2022-02-04 15:34:56 +11:00
nim-ethers@27d6e89672 feat: integrate dagger contracts 2022-02-04 15:34:56 +11:00
nim-faststreams@1b561a9e71 adding submodules 2021-11-25 09:37:12 +01:00
nim-http-utils@689da19e9e Node setup (#32) 2022-01-10 09:32:56 -06:00
nim-json-rpc@5a28176080 feat: integrate dagger contracts 2022-02-04 15:34:56 +11:00
nim-json-serialization@c5f0e2465e adding submodules 2021-11-25 09:37:12 +01:00
nim-libbacktrace@284b3aac05 adding submodules 2021-11-25 09:37:12 +01:00
nim-libp2p@e72d03bc78 Minor cleanup and update deps (#42) 2022-01-12 16:19:37 -06:00
nim-metrics@743f81d4f6 adding submodules 2021-11-25 09:37:12 +01:00
nim-nat-traversal@8994b67b07 adding submodules 2021-11-25 09:37:12 +01:00
nim-nitro@9396fcb7d0 adding submodules 2021-11-25 09:37:12 +01:00
nim-presto@962bb588d1 Minor cleanup and update deps (#42) 2022-01-12 16:19:37 -06:00
nim-protobuf-serialization@f7d671f877 adding submodules 2021-11-25 09:37:12 +01:00
nim-secp256k1@d790c42206 adding submodules 2021-11-25 09:37:12 +01:00
nim-serialization@fcd0eadadd adding submodules 2021-11-25 09:37:12 +01:00
nim-stew@6ad35b876f refreshing stew (#43) 2022-01-12 16:52:09 -06:00
nim-toml-serialization@4e15e00ed9 Node setup (#32) 2022-01-10 09:32:56 -06:00
nim-unittest2@02c49b8a99 Node setup (#32) 2022-01-10 09:32:56 -06:00
nim-websock@a697e3585d Node setup (#32) 2022-01-10 09:32:56 -06:00
nim-zlib@74cdeb54b2 feat: integrate dagger contracts 2022-02-04 15:34:56 +11:00
nimbus-build-system@25a4c27033 Node setup (#32) 2022-01-10 09:32:56 -06:00
nimcrypto@a5742a9a21 adding submodules 2021-11-25 09:37:12 +01:00
questionable@6018fd43e0 Minor cleanup and update deps (#42) 2022-01-12 16:19:37 -06:00
stint@036c71d06a adding submodules 2021-11-25 09:37:12 +01:00
upraises@ff4f8108e4 adding submodules 2021-11-25 09:37:12 +01:00