This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var cache = (function() { | |
'use strict'; | |
var TTL_POSTFIX = 'time2live'; | |
var TTE_POSTFIX = 'time2expire'; | |
function _hasLocalStorage() { | |
if (!window.localStorage) { | |
throw new Error('you have no localStorage'); | |
} | |
} | |
function _removeCachedKey(key) { |