/// <summary> /// Set maximum resource total size /// </summary> /// <param name="options"></param> /// <param name="newValue"></param> /// <returns></returns> public static AssetCacheOptions SetMaxResourceTotalSize(this AssetCacheOptions options, int newValue) { options.Set <int>(Key_MaxResourceTotalSize, newValue); return(options); }
/// <summary> /// Set option for cache streams /// </summary> /// <param name="options"></param> /// <param name="newValue"></param> /// <returns></returns> public static AssetCacheOptions SetCacheStreams(this AssetCacheOptions options, bool newValue) { options.Set <bool>(Key_CacheStreams, newValue); return(options); }
/// <summary> /// Set whether cache should create clones of keys, or whether to use the keys that come from requests in its cache structures. /// </summary> /// <param name="options"></param> /// <param name="cloneKeys"></param> /// <returns></returns> public static AssetCacheOptions SetCloneKeys(this AssetCacheOptions options, bool cloneKeys) { options.Set <bool>(Key_CloneKeys, cloneKeys); return(options); }