Socket
Book a DemoInstallSign in
Socket

uniform-cache-dummy

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uniform-cache-dummy

Dummy implentation (no backing store) of the uniform-cache interface

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

node-uniform-cache dummy implementation

Uniform Cache is a collection of modules which present an identical or uniform interface to various caching mechanisms.

The interface provided is relatively basic to ensure portability between backing stores, but also provides a basic read-through mechanism.

This module represents the 'dummy' implementation, i.e. all fetch operations will return null unless used in read-through mode. No storage actually takes place. This is the equivalent of 'no caching', but this implentation allows code that utilises the uniform-cache interface to disable all caching simply by switching the module name, handy for development/testing purposes.

More details are available through the separate README file in the root of the repository on GitHub.

###Module-specifics This module takes no arguments, but does behave differently in that it will not store any data. Fetch commands will return null unless used in read-through mode, store, remove, and close commands are all no-op (though callbacks will still be executed), increment command will behave as if the key did not exist before the command ran.

FAQs

Package last updated on 28 Jul 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts