Package io.featureflow.client.core
Class SimpleMemoryFeatureCache
java.lang.Object
io.featureflow.client.core.SimpleMemoryFeatureCache
- All Implemented Interfaces:
FeatureControlCache,Closeable,AutoCloseable
Simple in Map implementation for local feature caching
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidgetAll()voidinit(Map<String, FeatureControl> featureControls) voidupdate(String key, FeatureControl featureControl)
-
Constructor Details
-
SimpleMemoryFeatureCache
public SimpleMemoryFeatureCache()
-
-
Method Details
-
init
- Specified by:
initin interfaceFeatureControlCache
-
get
- Specified by:
getin interfaceFeatureControlCache
-
getAll
- Specified by:
getAllin interfaceFeatureControlCache
-
update
- Specified by:
updatein interfaceFeatureControlCache
-
delete
- Specified by:
deletein interfaceFeatureControlCache
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-