@serayaeryn/memory-cache

1.0.0 • Public • Published

memory-cache

Build Status Coverage Status NPM version JavaScript Style Guide

Installation

npm i @serayaeryn/memory-cache

API

Cache(options)

ttl

Time to live in milliseconds.

Cache#get(key)

Returns the cached entry for the key.

Cache#has(key)

Allows to check if the cache contains an entry for the key.

Cache#remove(key)

Remove the entry for the key from the cache.

Cache#put(key, value)

Stores the value for the key in the cache.

License

Licensed under MIT.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1

Package Sidebar

Install

npm i @serayaeryn/memory-cache

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

5.91 kB

Total Files

7

Last publish

Collaborators

  • serayaeryn