time-cache
A key-value cache that puts a expiry date on its entries.
Last updated 10 years ago by daviddias .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install time-cache 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.3.0                                ...           latest (9 years ago)

4 Versions

  • 0.3.0                                ...           9 years ago
  • 0.2.3                                ...           10 years ago
  • 0.2.1                                ...           10 years ago
  • 0.2.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)

Copyright 2013 - present © cnpmjs.org | Home |