Skip to content

Bratn/jcacher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

** jCacher - small javascript caching utility **

Less than 0.7kb compiled and gzipped

Suited for single-page apps. No external dependencies. 

Compatible with jQuery, Prototype, Closure Library, YUI, MooTools, Dojo, requireJS etc.

// Add item to the cache
jCacher.add(key, obj [, options, dependencies]);

// Get item from the cache
jCacher.get(key);

// Remove item from the cache
jCacher.remove(key);

// Clear the entire cache
jCacher.clear();

// Event handler for item removed
jCacher.removed(callback);

// Default cache item settings
jCacher.CacheItem.defaults = {
	sliding: 60, // sec
	absolute: 60 // sec
};

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published