public class FileLFUCache extends FileCache
Constructor and Description |
---|
FileLFUCache(int maxSize)
Creates file LFU cache with specified size.
|
FileLFUCache(int maxSize,
int maxFileSize) |
FileLFUCache(int maxSize,
int maxFileSize,
long timeout)
Creates new File LFU 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, usedSize
public FileLFUCache(int maxSize)
max available file size
to half of this value.public FileLFUCache(int maxSize, int maxFileSize)
public FileLFUCache(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()
FileCache
createCache
in class FileCache
Copyright © 2003-present Jodd Team