- <init>
Build LRU cache of files located at 'path'. It uses lastModified property of
file to build LRU cache
- close
Close the cache. Cache maintain set of files which it was not able to delete
successfully. This meth
- getIfStored
Return the inputstream from from cache, or null if not in the cache.
- isInPurgeMode
Return true if cache is in purge mode else return false.
- store
Store an item in the cache and return the input stream. If cache is in purgeMode
or file doesn't exi
- canAdmitFile
Check if cache can admit file of given length.
- delete
Delete file from cache. Size of cache is reduced by file length. The method is
no-op if file doesn't
- getFile
- getFileIfStored
- getFileLength
Returns length of file if exists in cache else returns null.
- maxSizeElements
- setPurgeMode
Set purge mode. If set to true all cache operation will be no-op. If set to
false, all operations to