Skip to content

beckettkev/Cache-Funk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Synopsis

Cache-Funk is a simple helper library for interacting with the web browser's local storage cache. It introduces the concept of limited life span caches and cache inserts to local storage.

Code Example

	imports { exists, fetch, insert, store, remove } from cache-funk

	store('KeyName', ['data','data','data','data']);

Motivation

The aim of this project is to allow you to extend existing local storage cache entries and set life spans for content stored in your local storage cache (so that they can be replaced when they become stale).

Installation

When you have done that, install cache-funk by npm:

npm i cache-funk --save

You will then need to install the dependencies:

npm i

Tests

To run lint against the JavaScript code in cache-funk

npm run lint

To run spec tests against cache-funk

npm run test

Contributors

@beckettkev

License

The MIT License (MIT)

Copyright (c) 2016 beckettkev

About

JavaScript web browser local storage helper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published