time-cache

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


Keywords
IPFS, PubSub, Cache, time, temporal, validity
License
MIT
Install
npm install time-cache@0.2.1

Documentation

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