public class RedisPersistenceService extends Object implements PersistenceService
| Constructor and Description |
|---|
RedisPersistenceService(OxdServerConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
static org.gluu.service.cache.RedisConfiguration |
asRedisConfiguration(com.fasterxml.jackson.databind.JsonNode node) |
static org.gluu.service.cache.RedisConfiguration |
asRedisConfiguration(OxdServerConfiguration configuration) |
void |
create() |
boolean |
create(Rp rp) |
boolean |
createExpiredObject(ExpiredObject obj) |
boolean |
deleteAllExpiredObjects() |
boolean |
deleteExpiredObjectsByKey(String key) |
void |
destroy() |
String |
get(String key) |
ExpiredObject |
getExpiredObject(String key) |
Rp |
getRp(String oxdId) |
Set<Rp> |
getRps() |
boolean |
isExpiredObjectPresent(String key) |
void |
put(int expirationInSeconds,
String key,
String value) |
void |
put(String key,
String value) |
boolean |
remove(String oxdId) |
boolean |
removeAllRps() |
boolean |
update(Rp rp) |
public RedisPersistenceService(OxdServerConfiguration configuration)
public void create()
create in interface PersistenceServicepublic boolean create(Rp rp)
create in interface PersistenceServicepublic boolean createExpiredObject(ExpiredObject obj)
createExpiredObject in interface PersistenceServicepublic boolean update(Rp rp)
update in interface PersistenceServicepublic Rp getRp(String oxdId)
getRp in interface PersistenceServicepublic ExpiredObject getExpiredObject(String key)
getExpiredObject in interface PersistenceServicepublic boolean isExpiredObjectPresent(String key)
isExpiredObjectPresent in interface PersistenceServicepublic boolean removeAllRps()
removeAllRps in interface PersistenceServicepublic Set<Rp> getRps()
getRps in interface PersistenceServicepublic void destroy()
destroy in interface PersistenceServicepublic boolean remove(String oxdId)
remove in interface PersistenceServicepublic boolean deleteExpiredObjectsByKey(String key)
deleteExpiredObjectsByKey in interface PersistenceServicepublic boolean deleteAllExpiredObjects()
deleteAllExpiredObjects in interface PersistenceServicepublic static org.gluu.service.cache.RedisConfiguration asRedisConfiguration(OxdServerConfiguration configuration) throws Exception
ExceptionCopyright © 2021. All rights reserved.