public class RedisDataStore extends Object implements org.apache.wicket.pageStore.IDataStore
Constructor and Description |
---|
RedisDataStore(IRedisSettings settings)
Constructor.
|
RedisDataStore(redis.clients.jedis.JedisPool pool,
IRedisSettings settings)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canBeAsynchronous() |
void |
destroy() |
byte[] |
getData(String sessionId,
int pageId) |
boolean |
isReplicated() |
void |
removeData(String sessionId) |
void |
removeData(String sessionId,
int pageId) |
void |
storeData(String sessionId,
int pageId,
byte[] data) |
public RedisDataStore(IRedisSettings settings)
settings
- The various settingspublic RedisDataStore(redis.clients.jedis.JedisPool pool, IRedisSettings settings)
pool
- The pool with Jedis connectionssettings
- The various settingspublic byte[] getData(String sessionId, int pageId)
getData
in interface org.apache.wicket.pageStore.IDataStore
public void removeData(String sessionId, int pageId)
removeData
in interface org.apache.wicket.pageStore.IDataStore
public void removeData(String sessionId)
removeData
in interface org.apache.wicket.pageStore.IDataStore
public void storeData(String sessionId, int pageId, byte[] data)
storeData
in interface org.apache.wicket.pageStore.IDataStore
public void destroy()
destroy
in interface org.apache.wicket.pageStore.IDataStore
public boolean isReplicated()
isReplicated
in interface org.apache.wicket.pageStore.IDataStore
public boolean canBeAsynchronous()
canBeAsynchronous
in interface org.apache.wicket.pageStore.IDataStore
Copyright © 2015. All rights reserved.