Package com.okta.sdk.impl.cache
Class DisabledCache<K,V>
java.lang.Object
com.okta.sdk.impl.cache.DisabledCache<K,V>
- All Implemented Interfaces:
Cache<K,
V>
A disabled implementation that does nothing. This is useful for a CacheManager implementation to return instead
of retuning null. Non-null guarantees reduce a program's cyclomatic complexity.
- Since:
- 0.5.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThis implementation does not do anything and always returns null.This implementation does not do anything (no caching) and always returns null.This implementation does not do anything (no caching) and always returns null.
-
Constructor Details
-
DisabledCache
public DisabledCache()
-
-
Method Details
-
get
This implementation does not do anything and always returns null. -
put
This implementation does not do anything (no caching) and always returns null. -
remove
This implementation does not do anything (no caching) and always returns null.
-