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

Dependents (0)

Package Sidebar

Install

npm i memcachedo

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

20.4 kB

Total Files

4

Last publish

Collaborators

  • jmathews-shiver