Cache Driver
About
Inspired by the PHP package Onoi Cache, this package aims to help make other packages less dependent on specific caching packages.
Installation
npm install cache-driver --save
Usage (Packages)
This section is if you're adding this driver to your package. It also assumes you're using TypeScript.
private cache: Cache|null = null; { if cache thiscache = cache; } public { if thiscache !== null thiscache; }
Usage (Product) Untested
This is assuming you're using MyAwesomeClass
from above as well as TypeScript.
This also assumes you're using the cache
package.
cache
Install npm install cache --save
let awesome = ;