JSPM

time-cache

0.3.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5920
  • Score
    100M100P100Q117802F
  • License MIT

A key-value cache that puts a expiry date on its entries.

Package Exports

  • time-cache

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (time-cache) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

time-cache

Build Status Coverage Status Dependency Status js-standard-style

A key-value cache that puts a expiry date on its entries.

Table of Contents

Install

npm

> npm install time-cache

Usage

Example

// TODO (see tests meanwhile)

API

Create a time-cache const tc = new TimeCache(options)

Add a value tc.put(key, value, validity)

Has a value tc.has(key)

Get a value tc.get(key)

Contribute

Contributions are welcome!

License

MIT