Package com.mchange.v1.cachedstore
Class CachedStoreFactory
java.lang.Object
com.mchange.v1.cachedstore.CachedStoreFactory
Unless otherwise noted, implementations are to be presumed
NOT thread safe!!! use the synchronized
wrappers defined in CachedStoreUtils for multithreaded situations!
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic WritableCachedStore
static WritableCachedStore
creates a WritableCachedStore implementation that uses soft keys and synchronous cleanup for its read cache.static TweakableCachedStore
Always reads directly from manager, as if values are always dirty.static WritableCachedStore
Always reads directly from manager, as if values are always dirty.static TweakableCachedStore
static TweakableCachedStore
Better to use createSynchronousCleanupSoftKeyCachedStore to prevent the build of cleaned SoftReferences, unless the universe of potential cacheables is small.static TweakableCachedStore
-
Constructor Details
-
CachedStoreFactory
public CachedStoreFactory()
-
-
Method Details
-
createNoCleanupCachedStore
-
createSoftValueCachedStore
Better to use createSynchronousCleanupSoftKeyCachedStore to prevent the build of cleaned SoftReferences, unless the universe of potential cacheables is small. -
createSynchronousCleanupSoftKeyCachedStore
public static TweakableCachedStore createSynchronousCleanupSoftKeyCachedStore(CachedStore.Manager manager) -
createNoCacheCachedStore
Always reads directly from manager, as if values are always dirty. -
createDefaultWritableCachedStore
public static WritableCachedStore createDefaultWritableCachedStore(WritableCachedStore.Manager manager) creates a WritableCachedStore implementation that uses soft keys and synchronous cleanup for its read cache. -
cacheWritesOnlyWritableCachedStore
public static WritableCachedStore cacheWritesOnlyWritableCachedStore(WritableCachedStore.Manager mgr) -
createNoCacheWritableCachedStore
Always reads directly from manager, as if values are always dirty. Always writes to back-end storage. Effectively Autoflushing, since every write is flushed.- See Also:
-