Cache
Very simple code Modern code Junior friendly Typescript Made with 💛
yarn add @amaui/cache
import AmauiCache from '@amaui/cache';
const args = [4, { a: 4, ab: 4 }];
// Args is made into a hash, which makes the key
// a very useful, when you wanna cache a value based
// on some complex amount of variables
AmauiCache.add(4, ...args);
AmauiCache.get(...args);
// Output
// 4
Install
yarn
Test
yarn test
Build
yarn build