My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Project Information
Members
Featured
Downloads

This is a very simple javascript object cache, with about 20 line code.

Dependence

Prototype 1.6.1+

How to

Installation

Download and link prototype.js and jscache.js in your html header as

<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript" src="jscache.js"></script>

Configuration

You do not need any configuration

Usage

Store something in cache:

var data = [1,2,3];
JSCache.put("mydata", data);

Get something from cache:

var data = JSCache.get("mydata");

Remove something in cache:

JSCache.remove("mydata");

Clear all cache:

JSCache.reset();

That's all.

Powered by Google Project Hosting