DODSCacheFactory

Default value: "org.enhydra.dods.cache.lru.DODSLRUCacheFactory".

File: configuration file.

Context: cache parameter on DatabaseManager and LogicalDatabase level.

If this parameter is set to full class name of class that implements DODSCacheAbstractFactory interface, DODS will use this class to create internal, cache, data storage objects used in DataStructCache, QueryCache and TransactionQueryCache implementation to store cache items.

Current possible values (implementations) for this parameter are:

  1. "org.enhydra.dods.cache.lru.DODSLRUCacheFactory" (default) - uses LRU cache mechanism, java1.3 compatibile,

  2. "org.enhydra.dods.cache.hash.DODSLinkedHashCacheFactory" - uses LinkedList (unordered), java1.4 compatible and less synchronized (faster).

Examples:

DatabaseManager.defaults.cache.DODSCacheFactory = "org.enhydra.dods.cache.lru.DODSLRUCacheFactory"

or

DatabaseManager.DB.<LogicalDatabaseName>.cache.DODSCacheFactory = "org.enhydra.dods.cache.lru.DODSLRUCacheFactory"