SessionRepository.save returns S

Issue gh-809
This commit is contained in:
Rob Winch
2017-06-22 17:30:40 -05:00
parent 233d179bfa
commit cd8686ae9c
5 changed files with 9 additions and 5 deletions

View File

@@ -386,13 +386,14 @@ public class RedisOperationsSessionRepository implements
this.redisFlushMode = redisFlushMode;
}
public void save(RedisSession session) {
public RedisSession save(RedisSession session) {
session.saveDelta();
if (session.isNew()) {
String sessionCreatedKey = getSessionCreatedChannel(session.getId());
this.sessionRedisOperations.convertAndSend(sessionCreatedKey, session.delta);
session.setNew(false);
}
return session;
}
@Scheduled(cron = "${spring.session.cleanup.cron.expression:0 * * * * *}")