third_party/angular/meetingtracks/public/js/angular-cache-2.0.0-rc.1.js
/**
                 * @method _loadCacheConfig
                 * @desc If storageMode is set, attempt to load previous cache configuration from localStorage.
                 * @private
                 * @ignore
                 */
@method _loadCacheConfig
@desc If storageMode is set, attempt to load previous cache configuration from localStorage.
@private
@ignore
@method _loadCacheConfig @desc If storageMode is set attempt to load previous cache configuration from localStorage . @private @ignore
function _loadCacheConfig() {
                    var keys = angular.fromJson(storage.getItem(prefix + '.keys'));
                    storage.removeItem(prefix + '.keys');
                    if (keys && keys.length) {
                        for (var i = 0; i < keys.length; i++) {
                            var data = angular.fromJson(storage.getItem(prefix + '.data.' + keys[i])),
                                maxAge = data.maxAge || config.maxAge,
                                deleteOnExpire = data.deleteOnExpire || config.deleteOnExpire;
                            if (maxAge && ((new Date().getTime() - data.created) > maxAge) && deleteOnExpire === 'aggressive') {
                                storage.removeItem(prefix + '.data.' + keys[i]);
                            } else {
                                var options = {
                                    created: data.created
                                };
                                if (data.expires) {
                                    options.expires = data.expires;
                                }
                                if (data.accessed) {
                                    options.accessed = data.accessed;
                                }
                                if (data.maxAge) {
                                    options.maxAge = data.maxAge;
                                }
                                if (data.deleteOnExpire) {
                                    options.deleteOnExpire = data.deleteOnExpire;
                                }
                                self.put(keys[i], data.value, options);
                            }
                        }
                        _syncToStorage(null);
                    }
                }
function _loadCacheConfig ( ) { var keys = angular . fromJson ( storage . getItem ( prefix + '.keys' ) ) ; storage . removeItem ( prefix + '.keys' ) ; if ( keys && keys . length ) { for ( var i = 0 ; i < keys . length ; i ++ ) { var data = angular . fromJson ( storage . getItem ( prefix + '.data.' + keys [ i ] ) ) , maxAge = data . maxAge || config . maxAge , deleteOnExpire = data . deleteOnExpire || config . deleteOnExpire ; if ( maxAge && ( ( new Date ( ) . getTime ( ) - data . created ) > maxAge ) && deleteOnExpire === 'aggressive' ) { storage . removeItem ( prefix + '.data.' + keys [ i ] ) ; } else { var options = { created : data . created } ; if ( data . expires ) { options . expires = data . expires ; } if ( data . accessed ) { options . accessed = data . accessed ; } if ( data . maxAge ) { options . maxAge = data . maxAge ; } if ( data . deleteOnExpire ) { options . deleteOnExpire = data . deleteOnExpire ; } self . put ( keys [ i ] , data . value , options ) ; } } _syncToStorage ( null ) ; } }
@method _loadCacheConfig
 @desc If storageMode is set, attempt to load previous cache configuration from localStorage.
@method _loadCacheConfig @desc If storageMode is set attempt to load previous cache configuration from localStorage .