dist/expired_storage.js
function(key) {

            // get value and time left
            var ret = {
                value: this._storage.getItem(key),
                timeLeft: this.getTimeLeft(key),
            };

            // set if expired
            ret.isExpired = ret.timeLeft !== null && ret.timeLeft <= 0;

            // return data
            return ret;
        }
function(key) {

            // get value and time left
            var ret = {
                value: this._storage.getItem(key),
                timeLeft: this.getTimeLeft(key),
            };

            // set if expired
            ret.isExpired = ret.timeLeft !== null && ret.timeLeft <= 0;

            // return data
            return ret;
        }
function ( key ) { // get value and time left var ret = { value : this . _storage . getItem ( key ) , timeLeft : this . getTimeLeft ( key ) , } ; // set if expired ret . isExpired = ret . timeLeft !== null && ret . timeLeft <= 0 ; // return data return ret ; }
Get item + metadata such as time left and if expired.
Even if item expired, will not remove it.
@param key: Item key to get (string).
@return: Dictionary with: {value, timeLeft, isExpired}
Get item + metadata such as time left and if expired . Even if item expired will not remove it .