third_party/angular/meetingtracks/public/js/angular-cache-2.0.0-rc.1.js
/**
                 * @method _setOptions
                 * @desc Configure this cache with the given options.
                 * @param {Object} cacheOptions New configuration options for the cache.
                 * @param {Boolean} [strict] If true then any existing configuration will be reset to default before
                 * applying the new options, otherwise only the options specified in the options hash will be altered.
                 * @param {Object} [options] Configuration.
                 * @private
                 * @ignore
                 */
@method _setOptions
@desc Configure this cache with the given options.
@param {Object} cacheOptions New configuration options for the cache.
@param {Boolean} [strict] If true then any existing configuration will be reset to default before
applying the new options, otherwise only the options specified in the options hash will be altered.
@param {Object} [options] Configuration.
@private
@ignore
@method _setOptions @desc Configure this cache with the given options . @param { Object } cacheOptions New configuration options for the cache . @param { Boolean } [ strict ] If true then any existing configuration will be reset to default before applying the new options otherwise only the options specified in the options hash will be altered . @param { Object } [ options ] Configuration . @private @ignore
function _setOptions(cacheOptions, strict, options) {
                    cacheOptions = cacheOptions || {};
                    options = options || {};
                    strict = !!strict;
                    if (!angular.isObject(cacheOptions)) {
                        throw new Error('AngularCache.setOptions(cacheOptions, strict, options): cacheOptions: must be an object!');
                    }
                    _verifyIntegrity(options.verifyIntegrity);
                    if (strict) {
                        cacheOptions = angular.extend({}, cacheDefaults, cacheOptions);
                    }
                    if ('verifyIntegrity' in cacheOptions) {
                        config.verifyIntegrity = cacheOptions.verifyIntegrity === true;
                    }
                    if ('capacity' in cacheOptions) {
                        _setCapacity(cacheOptions.capacity);
                    }
                    if ('deleteOnExpire' in cacheOptions) {
                        _setDeleteOnExpire(cacheOptions.deleteOnExpire);
                    }
                    if ('maxAge' in cacheOptions) {
                        _setMaxAge(cacheOptions.maxAge);
                    }
                    if ('recycleFreq' in cacheOptions) {
                        _setRecycleFreq(cacheOptions.recycleFreq);
                    }
                    if ('cacheFlushInterval' in cacheOptions) {
                        _setCacheFlushInterval(cacheOptions.cacheFlushInterval);
                    }
                    if ('storageMode' in cacheOptions) {
                        _setStorageMode(cacheOptions.storageMode, cacheOptions.storageImpl);
                    }
                    if ('onExpire' in cacheOptions) {
                        if (cacheOptions.onExpire !== null && typeof cacheOptions.onExpire !== 'function') {
                            throw new Error('onExpire: must be a function!');
                        }
                        config.onExpire = cacheOptions.onExpire;
                    }
                    cacheDirty = true;
                }
function _setOptions ( cacheOptions , strict , options ) { cacheOptions = cacheOptions || { } ; options = options || { } ; strict = ! ! strict ; if ( ! angular . isObject ( cacheOptions ) ) { throw new Error ( 'AngularCache.setOptions(cacheOptions, strict, options): cacheOptions: must be an object!' ) ; } _verifyIntegrity ( options . verifyIntegrity ) ; if ( strict ) { cacheOptions = angular . extend ( { } , cacheDefaults , cacheOptions ) ; } if ( 'verifyIntegrity' in cacheOptions ) { config . verifyIntegrity = cacheOptions . verifyIntegrity === true ; } if ( 'capacity' in cacheOptions ) { _setCapacity ( cacheOptions . capacity ) ; } if ( 'deleteOnExpire' in cacheOptions ) { _setDeleteOnExpire ( cacheOptions . deleteOnExpire ) ; } if ( 'maxAge' in cacheOptions ) { _setMaxAge ( cacheOptions . maxAge ) ; } if ( 'recycleFreq' in cacheOptions ) { _setRecycleFreq ( cacheOptions . recycleFreq ) ; } if ( 'cacheFlushInterval' in cacheOptions ) { _setCacheFlushInterval ( cacheOptions . cacheFlushInterval ) ; } if ( 'storageMode' in cacheOptions ) { _setStorageMode ( cacheOptions . storageMode , cacheOptions . storageImpl ) ; } if ( 'onExpire' in cacheOptions ) { if ( cacheOptions . onExpire !== null && typeof cacheOptions . onExpire !== 'function' ) { throw new Error ( 'onExpire: must be a function!' ) ; } config . onExpire = cacheOptions . onExpire ; } cacheDirty = true ; }
@method _setOptions
 @desc Configure this cache with the given options.
@method _setOptions @desc Configure this cache with the given options .