Cache Plain Local Storage Driver
#
IntroductionThis driver implements Cache Driver Interface.
The plain local storage driver implements and manipulates data from The Browser Local Storage.
#
UsageThe same exact usage is the same Cache Manager except the setDriver
and getDriver
, these methods are for the cache manager only.
#
Example of usage outside the cache managerimport { PlainLocalStorageDriver } from 'mongez/cache';
let driver: PlainLocalStorageDriver = new PlainLocalStorageDriver();
driver.set('name', 'Hasan'); // this will be stored in the local storage.