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

java.lang.Object
com.globalmentor.cache.AbstractCache<K,Q,File,AbstractFileCache.FileData>
com.globalmentor.cache.AbstractFileCache<K,Q>
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,File>

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

    • 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.