|
|
|
@ -54,6 +54,7 @@ public class RedissonSessionManager extends ManagerBase implements Lifecycle {
|
|
|
|
|
private String configPath;
|
|
|
|
|
private ReadMode readMode = ReadMode.MEMORY;
|
|
|
|
|
private UpdateMode updateMode = UpdateMode.DEFAULT;
|
|
|
|
|
private String keyPrefix = "";
|
|
|
|
|
|
|
|
|
|
public String getUpdateMode() {
|
|
|
|
|
return updateMode.toString();
|
|
|
|
@ -78,7 +79,15 @@ public class RedissonSessionManager extends ManagerBase implements Lifecycle {
|
|
|
|
|
public String getConfigPath() {
|
|
|
|
|
return configPath;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getKeyPrefix() {
|
|
|
|
|
return keyPrefix;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setKeyPrefix(String keyPrefix) {
|
|
|
|
|
this.keyPrefix = keyPrefix;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public int getRejectedSessions() {
|
|
|
|
|
return 0;
|
|
|
|
@ -131,7 +140,7 @@ public class RedissonSessionManager extends ManagerBase implements Lifecycle {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public RMap<String, Object> getMap(String sessionId) {
|
|
|
|
|
return redisson.getMap("redisson_tomcat_session:" + sessionId);
|
|
|
|
|
return redisson.getMap(keyPrefix + "redisson_tomcat_session:" + sessionId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|