com.danikula.videocache.file.TotalCountLruDiskUsage Java Examples
The following examples show how to use
com.danikula.videocache.file.TotalCountLruDiskUsage.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HttpProxyCacheServer.java From AndriodVideoCache with Apache License 2.0 | 2 votes |
/** * Sets max cache files count. * All files that exceeds limit will be deleted using LRU strategy. * Note this method overrides result of calling {@link #maxCacheSize(long)} * * @param count max cache files count. * @return a builder. */ public Builder maxCacheFilesCount(int count) { this.diskUsage = new TotalCountLruDiskUsage(count); return this; }
Example #2
Source File: HttpProxyCacheServer.java From DKVideoPlayer with Apache License 2.0 | 2 votes |
/** * Sets max cache files count. * All files that exceeds limit will be deleted using LRU strategy. * Note this method overrides result of calling {@link #maxCacheSize(long)} * * @param count max cache files count. * @return a builder. */ public Builder maxCacheFilesCount(int count) { this.diskUsage = new TotalCountLruDiskUsage(count); return this; }
Example #3
Source File: HttpProxyCacheServer.java From GSYVideoPlayer with Apache License 2.0 | 2 votes |
/** * Sets max cache files count. * All files that exceeds limit will be deleted using LRU strategy. * Note this method overrides result of calling {@link #maxCacheSize(long)} * * @param count max cache files count. * @return a builder. */ public Builder maxCacheFilesCount(int count) { this.diskUsage = new TotalCountLruDiskUsage(count); return this; }
Example #4
Source File: HttpProxyCacheServer.java From AndroidVideoCache with Apache License 2.0 | 2 votes |
/** * Sets max cache files count. * All files that exceeds limit will be deleted using LRU strategy. * Note this method overrides result of calling {@link #maxCacheSize(long)} * * @param count max cache files count. * @return a builder. */ public Builder maxCacheFilesCount(int count) { this.diskUsage = new TotalCountLruDiskUsage(count); return this; }