Wigbi Demos v. 0.99.2   
Documentation: PHP | JS

CacheHandler

This class can be used to cache data and retrieve any cached data. Cached data is stored on file at the server and is fast to work with.

The class makes it possible to handle cache data with PHP as well as with JavaScript, using AJAX. All serializible data can be cached.

Cache and retrieve data

//PHP
CacheHandler::set("foo", "bar", 10);
CacheHandler::get("foo");

//JavaScript
CacheHandler.set("foo", "bar", 10, function() { ... });
CacheHandler.get("foo", function(result) { ... });

Try it out

First, cache a string with either PHP or JavaScript:

Second, retrieve the string with either PHP or JavaScript:



  
 

Rate this class :    

   



  
 

Discuss this class (No comments):


    v. 0.99.2

    v. 0.99.2