web3.js
web3.js copied to clipboard
Added a LRU Cache file
Description
Added LRU Cache file and necessary methods to implement in the Cache in Registry
which would act as a memoized data structure , which would always give the least recently used value . Decreasing the time complexity.
Type of change
Checklist:
- [ ] I have selected the correct base branch.
- [ ] I have performed a self-review of my own code.
- [ ] I have commented my code, particularly in hard-to-understand areas.
- [ ] I have made corresponding changes to the documentation.
- [ ] My changes generate no new warnings.
- [ ] Any dependent changes have been merged and published in downstream modules.
- [ ] I ran
npm run lintwith success and extended the tests and types if necessary. - [ ] I ran
npm run test:unitwith success. - [ ] I ran
npm run test:coverageand my test cases cover all the lines and branches of the added code. - [ ] I ran
npm run buildand testeddist/web3.min.jsin a browser. - [ ] I have tested my code on the live network.
- [ ] I have checked the Deploy Preview and it looks correct.
- [ ] I have updated the
CHANGELOG.mdfile in the root folder. - [ ] I have linked Issue(s) with this PR in "Linked Issues" menu.
Requesting for the review of the code.
Added LRU Cache file
@Emkay2309