Class AbstractFileCache<K,​Q extends AbstractCache.Query<K>>

  • Type Parameters:
    K - The type of key used to look up data in the cache.
    Q - The type of query used to request data from the cache.
    All Implemented Interfaces:
    Cache<Q,​java.io.File>

    public abstract class AbstractFileCache<K,​Q extends AbstractCache.Query<K>>
    extends AbstractCache<K,​Q,​java.io.File,​AbstractFileCache.FileData>
    An abstract cache that stores cached values in files.
    Author:
    Garret Wilson
    • Constructor Detail

      • AbstractFileCache

        public AbstractFileCache​(boolean fetchSynchronous,
                                 long expiration)
        Constructor.
        Parameters:
        fetchSynchronous - Whether fetches for new values should occur synchronously.
        expiration - The length of time, in milliseconds, to keep cached information.