@0k/cache
v0.0.7
Published
Kids cache implementation
Readme
This packages holds a cache decorator implementation. It draws its inspiration on kids.cache a python simple yet powerful cache decorator.
This implementation leverage decorator in typescript to reach same goals:
- no dependencies
- cache clearing support
Its still in infancy and lacks:
- support for normal function (only methods and properties are cachable)
- cache stats
- 100% coverage
- doc
Adding @0k/cache to your project
From the root of your project:
npm install --save @0k/cacheOr better, as @0k/cache is still in early release,
npm install --save @0k/cache#masterTo be sure to get the latest version, relaunch this last command whenever you want to update.
Contributing to @0k/cache
This package is using npm to track dependendies, so you can install them
with:
npm installAs this package is written in typescript. You can transpile to
javascript and transpile on file change with:
## Compile and watch
npx tspc -wTests are managed through vitest
## Run test once
npm run testNote that you can also use npx vitest command to launch tests in
watch mode.
