public class RedisPersistenceService extends Object implements PersistenceService
| Constructor and Description |
|---|
RedisPersistenceService(Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
static org.xdi.service.cache.RedisConfiguration |
asRedisConfiguration(Configuration configuration) |
static org.xdi.service.cache.RedisConfiguration |
asRedisConfiguration(org.codehaus.jackson.JsonNode node) |
void |
create() |
boolean |
create(Rp rp) |
void |
destroy() |
String |
get(String key) |
Rp |
getRp(String oxdId) |
Set<Rp> |
getRps() |
void |
put(String key,
String value) |
boolean |
remove(String oxdId) |
boolean |
removeAllRps() |
boolean |
update(Rp rp) |
public RedisPersistenceService(Configuration configuration)
public void create()
create in interface PersistenceServicepublic boolean create(Rp rp)
create in interface PersistenceServicepublic boolean update(Rp rp)
update in interface PersistenceServicepublic Rp getRp(String oxdId)
getRp 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 static org.xdi.service.cache.RedisConfiguration asRedisConfiguration(Configuration configuration) throws Exception
ExceptionCopyright © 2018. All rights reserved.