1.0.0 • Published 9 years ago

hr.storage v1.0.0

Weekly downloads
16
License
-
Repository
github
Last release
9 years ago

hr.storage Build Status

Local storage and caching utility

Installation

$ npm install hr.storage

Documentation

Read/Write localstorage

var storage = require("hr.storage");

// Read a value from storage
storage.get("hello");

// Write a value in storage
storage.set("hello", "world");

// JSON-Serializable object can be used
storage.set("hello", { message: "World" });

Cache

var Cache = require("hr.cache").Cache;

var cache = new Cache({
    namespace: "files"
});

// Set a value
cache.set("README.md", { content: "File content "}, 60*1000);
1.0.0

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago