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

3.14.1 • Public • Published

@aofl/cache-manager

Provides a unified class for storing objects in Storage-like Objects. You can choose from localStorage, sessionStorage and memoryStorage.

Api Documentation

Examples

Installation

npm i -S @aofl/cache-manager

Usage

import {CacheManager, cacheTypeEnumerate} from '@aofl/cache-manager';

const cacheManager = new CacheManager('exampleNamespace', cacheTypeEnumerate.LOCAL)
cacheManager.setItem('hello', 'world');

console.log(cacheManager.getItem('hello')); // expected result: 'world'

Package Sidebar

Install

npm i @aofl/cache-manager

Weekly Downloads

98

Version

3.14.1

License

MIT

Unpacked Size

41.4 kB

Total Files

10

Last publish

Collaborators

  • alexdinari