T
- The cache type, must extend java.lang.Comparable.public abstract class MultiFileBasedCache<T extends Comparable<T>> extends FileBasedCache<Set<T>>
Implements generating a filename from this.
cacheDir
Constructor and Description |
---|
MultiFileBasedCache(String cacheName)
Creates a new FileBasedCache object.
|
Modifier and Type | Method and Description |
---|---|
File |
getCacheFile(Set<T> ids)
Get the filename for the file containing the combined data for a set of IDs.
|
cache, cacheData, get, getCacheDir, getIndex
public MultiFileBasedCache(String cacheName)
cacheName
- Name of this cache (enabling sharing among processes). The directoriy creating in the cachedir
will have this name.public File getCacheFile(Set<T> ids)
getCacheFile
in class FileBasedCache<Set<T extends Comparable<T>>>
ids
- A set of IDs to generate a filename forCopyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.