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

            var v = Storage.get(ckey);
            if (v == null) {
                return null;
            } else {
                if (v.expiration == -1 || v.expiration > ctime) {
                    return v.value;
                } else {
                    Storage.remove(ckey);
                    return null;
                }
            }
        }
function(namespace, key) {
            var ckey = Cache.key(namespace, key);
            var ctime = (new Date()).getTime();

            var v = Storage.get(ckey);
            if (v == null) {
                return null;
            } else {
                if (v.expiration == -1 || v.expiration > ctime) {
                    return v.value;
                } else {
                    Storage.remove(ckey);
                    return null;
                }
            }
        }
function ( namespace , key ) { var ckey = Cache . key ( namespace , key ) ; var ctime = ( new Date ( ) ) . getTime ( ) ; var v = Storage . get ( ckey ) ; if ( v == null ) { return null ; } else { if ( v . expiration == - 1 || v . expiration > ctime ) { return v . value ; } else { Storage . remove ( ckey ) ; return null ; } } }
Get data from the cache

@method get
@param {string} namespace namespace for this key
@param {string} key key of the data to cache
@return {object} value from the cache
Get data from the cache