1.2.0 • Published 7 years ago

js-data-cache v1.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Data Cache

Simple data caching for Javascript

Installation

$ npm install js-data-cache --save

Usage

// include default response
var cache = require('js-data-cache');
var customer;
var data = [
    {
        id: 'test-uuid-1',
        name: 'John Smith'
    },
    {
        id: 'test-uuid-2',
        name: 'George Miller'
    }
];

cache.set(data, [ 'id' ]);

customer = cache.get('id', 'test-uuid-1');

console.log(customer);
1.2.0

7 years ago

1.1.0

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago