public interface IApiCache
RestListeners
and ApiListeners
to save and retrieve etags.Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all items in the cache.
|
boolean |
containsKey(String key)
Checks whether or not an object has previously been stored in the cache
|
void |
destroy()
Closes the cache.
|
Object |
get(String key)
Retrieve an object from the cache
|
void |
put(String key,
Object value)
Place an object in the cache
|
void |
put(String key,
Object value,
int ttl)
Place an object in the cache
|
boolean |
remove(String key)
Remove an object from the cache
|
Object get(String key)
key
- name of the object to fetchvoid put(String key, Object value)
key
- name of the object to storevalue
- value of the objectvoid put(String key, Object value, int ttl)
key
- name of the object to storevalue
- value of the objectttl
- time to live, when the object expiresboolean remove(String key)
key
- name of the object to removeboolean containsKey(String key)
key
- name of the object to findvoid clear()
void destroy()
Copyright © 2023 Frank!Framework. All rights reserved.