public class FileLRUCache extends FileCache
| Constructor and Description |
|---|
FileLRUCache(int maxSize)
Creates file LRU cache with specified size.
|
FileLRUCache(int maxSize,
int maxFileSize) |
FileLRUCache(int maxSize,
int maxFileSize,
long timeout)
Creates new File LRU cache.
|
| Modifier and Type | Method and Description |
|---|---|
protected Cache<java.io.File,byte[]> |
createCache()
Creates new cache instance for files content.
|
cachedFilesCount, cacheTimeout, clear, createFileCacheObject, getFileBytes, maxFileSize, maxSize, usedSizepublic FileLRUCache(int maxSize)
max available file size to half of this value.public FileLRUCache(int maxSize,
int maxFileSize)
public FileLRUCache(int maxSize,
int maxFileSize,
long timeout)
maxSize - total cache size in bytesmaxFileSize - max available file size in bytes, may be 0timeout - timeout, may be 0protected Cache<java.io.File,byte[]> createCache()
FileCachecreateCache in class FileCacheCopyright © 2003-present Jodd Team