public abstract class ConfigCache
extends java.lang.Object
ConfigCatClient.| Constructor and Description |
|---|
ConfigCache() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
get() |
java.lang.String |
inMemoryValue()
Through this getter, the in-memory representation of the cached value can be accessed.
|
protected abstract java.lang.String |
read()
Child classes has to implement this method, the
ConfigCatClient
uses it to get the actual value from the cache. |
void |
set(java.lang.String value) |
protected abstract void |
write(java.lang.String value)
* Child classes has to implement this method, the
ConfigCatClient
uses it to set the actual cached value. |
public java.lang.String get()
public void set(java.lang.String value)
public java.lang.String inMemoryValue()
protected abstract java.lang.String read()
throws java.lang.Exception
ConfigCatClient
uses it to get the actual value from the cache.java.lang.Exception - if unable to read the cache.protected abstract void write(java.lang.String value)
throws java.lang.Exception
ConfigCatClient
uses it to set the actual cached value.value - the new value to cache.java.lang.Exception - if unable to save the value.