Revert "SessionRepository.save returns S"

See gh-809
This commit is contained in:
Vedran Pavic
2017-06-23 18:48:30 +02:00
parent c6c6beb40c
commit b321ff02f0
5 changed files with 5 additions and 9 deletions

View File

@@ -386,14 +386,13 @@ public class RedisOperationsSessionRepository implements
this.redisFlushMode = redisFlushMode;
}
public RedisSession save(RedisSession session) {
public void 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 * * * * *}")