Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(provider): LRUCache Layer (#954)
* in-memory cache implementation * load and dump cache from fs * use RwLock * doc nits * feat: CacheConfig, load/save at specific paths * RequestType enum * params hash * clone and arc `CacheProvider` * add: get_block_by_hash * todos * refactor: port to transport layer * rm provider cache layer * use parking_lot::RwLock + tracing nits * cleanup nits * nit * move cache instance to layer * Revert "refactor: port to transport layer" This reverts commit bb05544. * use provider cache * use macro * cached get_proof * nit * nit * use parking_lot * make params hash independent of client * fix * cache_rpc_call_with_block! * fix: request type * redirect reqs with block tags to rpc * nits * get_accounts * chain_id * cfg gate wasm * rm get_accounts and get_chain_id * rm related tests * tests: run_with_temp_dir * feat: SharedCache * make CacheProvider generic over Network * add more methods * fmt * docs * docs * nit * fix * clippy * mv SharedCache * use schnellru * feat: get_derialized * nits
- Loading branch information