npm

Join us for the upcoming webinar, "Enterprise JavaScript done right: the tools you love, the security you need."Sign up here »

memcachedo

1.0.1 • Public • Published

Table of Contents

MemCacheDo

Basic in memory cache store

Meta

  • version: 1.0.0

keys

Returns all keys currently found in cache

Returns Array

size

Returns the number of current key/value pairs in memeory

Returns Number

put

Places key/value pair into memory for a set time and potential set an action to execute when entry expires

Parameters

  • key String
  • value Object
  • time (Undefined | Number) Positive Number of milliseconds that the cached object will remain in memeory prior to aging out
  • timeoutCallback (Undefined | Function) Action that will execute when the cached value ages out

Returns Object Value that was cached

del

Deletes cached value by key

Parameters

Returns Boolean If cached value was found and removed

clear

Removes all cached values from memory

get

Returns cached value based on key provided

Parameters

Returns Object Cached value

init

(Static) Intantiates and returns product without the need to "new"

Returns Class Instantiated class

install

npm i memcachedo

Downloadsweekly downloads

4

version

1.0.1

license

ISC

last publish

collaborators

  • avatar
Report a vulnerability