Package org.ec4j.core
Class Cache.Caches
java.lang.Object
org.ec4j.core.Cache.Caches
- Enclosing interface:
Cache
Factory methods for some basic
Cache implementations.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA simpleHashMapbasedCachewhose entries are kept forver unlessCache.Caches.PermanentCache.clear()is called. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NO_CACHE
NO_CACHEkeeps no state, we can thus have a singleton
-
-
Constructor Details
-
Caches
private Caches()
-
-
Method Details
-
none
Returns a new dummyCacheinstance that does not cache at all. Instead, it callsEditorConfigLoader.load(Resource)on each invocation ofCache.get(Resource, EditorConfigLoader). Because it keeps no state, the instance can be safely accessed from concurrent threads.- Returns:
- a new dummy
Cacheinstance
-
permanent
- Returns:
- a new
Cache.Caches.PermanentCache
-