@amaui/cache
TypeScript icon, indicating that this package has built-in type declarations

1.0.11117 • Public • Published

AMAUI logo

AMAUI Cache

Cache


MIT license     Production ready     UMD 4.2kb gzipped     100% test cov     Browser and Nodejs

Very simple code     Modern code     Junior friendly     Typescript     Made with 💛


Getting started

Add

  // yarn
  yarn add @amaui/cache

  // npm
  npm install @amaui/cache

Use

  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

Dev

Install

  yarn

Test

  yarn test

Prod

Build

  yarn build

Docs

Might be soon...

Package Sidebar

Install

npm i @amaui/cache

Weekly Downloads

8

Version

1.0.11117

License

MIT

Unpacked Size

68.6 kB

Total Files

11

Last publish

Collaborators

  • lazareric