NaNoWriMo Promotes Manuscription

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

    3.13.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'

    Install

    npm i @aofl/cache-manager

    DownloadsWeekly Downloads

    80

    Version

    3.13.1

    License

    MIT

    Unpacked Size

    40.2 kB

    Total Files

    9

    Last publish

    Collaborators

    • alexdinari
    • ariankhosravi