Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.
/ object_cache Public archive

JavaScript object cache with expiration

License

Notifications You must be signed in to change notification settings

rapid7/object_cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Object Cache

JavaScript object cache with timeout

What is this

A simple in-memory JavaScript object cache, indexed by a string or an object.

Used, for instance, to cache AJAX requests/responses.

Example

// Create cache object with up to 1000 elements
var cache = new ObjectCache( 1000);

// Save the object in cache, key may be an object
cache.put( key, value)
// Query the request in the cache
cache.get( key);
// Query the key, must not be older than a minute
cache.get( request, 60*1000);

The Latest Version

You can find the latest version in our repository.

Licensing

Shared under the Creative Commons Attribution 3.0 Unported License http://creativecommons.org/licenses/by/3.0/


Contact: Viliam Holub vilda@logentries.com, Logentries

About

JavaScript object cache with expiration

Resources

License

Stars

Watchers

Forks

Packages

No packages published