15.6.2 • Published 5 years ago

@the-/cache v15.6.2

Weekly downloads
703
License
MIT
Repository
github
Last release
5 years ago

@the-/cache

npm Version

Cache manager of the-frameworks

Installation

$ npm install @the-/cache --save

Usage

'use strict'

const theCache = require('@the-/cache')

async function tryExample() {
  const cache = theCache({
    max: 10000,
    maxAge: 3600000,
  })

  cache.set('foo', 'bar')
  const foo = cache.get('foo')
  console.log(foo) // -> 'bar'
  cache.reset() // remove all
}

tryExample().catch((err) => console.error(err))

API Guide

See API Guide for more detail

License

This software is released under the MIT License.

Links

15.6.2

5 years ago

15.6.1

5 years ago

15.6.0

5 years ago

15.5.3

6 years ago

15.5.1

6 years ago

15.4.1

6 years ago

15.2.0

6 years ago

15.1.4

6 years ago

15.1.3

6 years ago

15.1.2

6 years ago

15.1.0

6 years ago

15.0.3

6 years ago

15.0.2

6 years ago