Package org.flasby.util
Class SimpleCache<Key,Value>
java.lang.Object
org.flasby.util.SimpleCache<Key,Value>
- Type Parameters:
Key
-Value
-
- All Implemented Interfaces:
Cache<Key,
Value>
is a simple cache which looks-up values if the key has no entry.
It is not very smart and does not handle simultaneous requests from multiple threads well as it will request the value multiple times.
There is no cache expiry support either.
It is not very smart and does not handle simultaneous requests from multiple threads well as it will request the value multiple times.
There is no cache expiry support either.
For a smarter cache check ShinyCache instead.
- Author:
- steve
-
Constructor Summary
Constructors -
Method Summary