public/build/static/application.js
function(namespace, key, value, expiration) {
            var ckey = Cache.key(namespace, key);
            var ctime = (new Date()).getTime();

            if (expiration > 0) {
                expiration = ctime + expiration * 1000;
            } else {
                expiration = -1;
            }

            Storage.set(ckey, {
                "expiration": expiration,
                "value": value
            });
            return Cache.get(key);
        }
function(namespace, key, value, expiration) {
            var ckey = Cache.key(namespace, key);
            var ctime = (new Date()).getTime();

            if (expiration > 0) {
                expiration = ctime + expiration * 1000;
            } else {
                expiration = -1;
            }

            Storage.set(ckey, {
                "expiration": expiration,
                "value": value
            });
            return Cache.get(key);
        }
function ( namespace , key , value , expiration ) { var ckey = Cache . key ( namespace , key ) ; var ctime = ( new Date ( ) ) . getTime ( ) ; if ( expiration > 0 ) { expiration = ctime + expiration * 1000 ; } else { expiration = - 1 ; } Storage . set ( ckey , { "expiration" : expiration , "value" : value } ) ; return Cache . get ( key ) ; }
Set a data in the cache

@method get
@param {string} namespace namespace for this key
@param {string} key key of the data to cache
@param {object} value value to store in teh cache associated to this key
@param {number} [expiration] seconds before epiration of this value in the cache
Set a data in the cache