Commit 5541bbf8 authored by Daniel Gerhardt's avatar Daniel Gerhardt

Remove cache entry for newly created sessions

parent 023ea5ea
......@@ -86,6 +86,7 @@ public class CouchDbSessionRepository extends CouchDbRepositorySupport<Session>
}
@Override
@Caching(evict = @CacheEvict(cacheNames = "sessions", key = "#result.keyword"))
public Session saveSession(final User user, final Session session) {
session.setKeyword(sessionService.generateKeyword());
session.setCreator(user.getUsername());
......@@ -103,7 +104,6 @@ public class CouchDbSessionRepository extends CouchDbRepositorySupport<Session>
@Override
public boolean sessionKeyAvailable(final String keyword) {
/* FIXME: caching */
return getSessionFromKeyword(keyword) == null;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment