0.1.1 • Published 4 years ago

cache-manager-web v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Cache-Manager-Web

Build Status Coverage Status npm

Installation

npm install --save cache-manager-web

Usage

import CreateCache from 'cache-manager-web'

const Cache = CreateCache({
  store: 'memory',
  max: 100,
  ttl: 5 * 1000
})

const getMockDate = () => new Promise((resolve, reject) => {
  setTimeout(() => {
    resolve({ success: true })
  }, 500)
})

const init = async () => {
  const key = 'test'
  const data = await Cache.wrap(key, getMockDate)
}

init()

React.js Example

See the Cache-Manager-Web-Example to see use chche-manage-web in your applications.

API

Features

  • Improve README.md documentation
  • 100% test coverage via mocha, nyc

License

cache-manager-web is licensed under the MIT license.

0.1.1

4 years ago

0.1.0

6 years ago

0.0.2

6 years ago