Polish
See gh-1128
This commit is contained in:
@@ -391,6 +391,10 @@ public class RedisOperationsSessionRepository implements
|
|||||||
this.redisFlushMode = redisFlushMode;
|
this.redisFlushMode = redisFlushMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the database index to use. Defaults to {@link #DEFAULT_DATABASE}.
|
||||||
|
* @param database the database index to use
|
||||||
|
*/
|
||||||
public void setDatabase(int database) {
|
public void setDatabase(int database) {
|
||||||
this.database = database;
|
this.database = database;
|
||||||
configureSessionChannels();
|
configureSessionChannels();
|
||||||
@@ -541,8 +545,8 @@ public class RedisOperationsSessionRepository implements
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean isDeleted = (this.sessionDeletedChannel).equals(channel);
|
boolean isDeleted = channel.equals(this.sessionDeletedChannel);
|
||||||
if (isDeleted || (this.sessionExpiredChannel).equals(channel)) {
|
if (isDeleted || channel.equals(this.sessionExpiredChannel)) {
|
||||||
int beginIndex = body.lastIndexOf(":") + 1;
|
int beginIndex = body.lastIndexOf(":") + 1;
|
||||||
int endIndex = body.length();
|
int endIndex = body.length();
|
||||||
String sessionId = body.substring(beginIndex, endIndex);
|
String sessionId = body.substring(beginIndex, endIndex);
|
||||||
|
|||||||
Reference in New Issue
Block a user