- <init>
Constructor for the DiskCache object.
- checkForDedOverlaps
Detects any overlapping elements. This expects a sorted list. The total length
of an item is Indexed
- dump
For debugging.
- get
- getBytesFree
Returns the number of bytes that are free. When an item is removed, its length
is recorded. When a s
- loadKeys
Loads the keys from the .key file. The keys are stored in a HashMap on disk.
This is converted into
- optimizeFile
File optimization is handled by this method. It works as follows: 1. Shutdown
recycling and turn
- processGet
Gets the key, then goes to disk to get the object.
- saveKeys
Saves key file to disk. This converts the LRUMap to a HashMap for
deserialization.
- setCacheEventLogger
- addToRecycleBin
Add descriptor to recycle bin if it is not null. Adds the length of the item to
the bytes free. This
- checkKeyDataConsistency
Check for minimal consistency between the keys and the datafile. Makes sure no
starting positions in