(function(){u8.Base.Cache=function(){this.invalidate()};u8.Base.Cache.makeClass("Cache");$.extend(u8.Base.Cache.prototype,{dispose:function(){this._items=null},invalidate:function(e){if(e&&(typeof e=="object"||typeof e=="function")){var t=[];for(var i in this._items){if(i.match(e)){t.push(i)}}for(var s=0;s<t.length;s++){delete this._items[t[s]]}}if(typeof e!="undefined"){delete this._items[e]}else{this._items={}}},put:function(e,t){this._items[e]=t},get:function(e){return this._items[e]},refresh:function(){this.invalidate()}});u8.services.add({name:"cache",scope:"Session",ctor:u8.Base.Cache,scopes:{Login:{onEnter:"refresh",onLeave:"refresh"}}})})();