Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cache-storage

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cache-storage - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

10

lib/Storage/BrowserLocalStorage.js
// Generated by CoffeeScript 1.6.3
(function() {
var BrowserLocalStorage, Cache, Storage;
var BrowserLocalStorage, Cache, Storage,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

@@ -9,3 +11,5 @@ Storage = require('./Storage');

BrowserLocalStorage = (function() {
BrowserLocalStorage = (function(_super) {
__extends(BrowserLocalStorage, _super);
BrowserLocalStorage.TEST_VALUE = '__--cache-storage--__';

@@ -146,3 +150,3 @@

})();
})(Storage);

@@ -149,0 +153,0 @@ module.exports = BrowserLocalStorage;

{
"name": "cache-storage",
"description": "Cache storage for node js",
"version": "1.0.2",
"version": "1.1.0",
"author": {

@@ -6,0 +6,0 @@ "name": "David Kudera",

@@ -19,5 +19,10 @@ # cache-storage

You have to set storage which you want to use (now there is only file storage, but other storages like memcache and other
are in plan) and name of namespace for cache, because you can use more than one independent caches.
You have to set storage which you want to use (their list below) and name of namespace for cache, because you can use
more than one independent caches.
## Available storages
* FileStorage (cache-storage/Storage/FileStorage - saving data to json files)
* BrowserLocalStorage (cache-storage/Storage/BrowserLocalStorage - saving data to HTML5 local storage)
## Loading & saving

@@ -24,0 +29,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc