Skip to content
Snippets Groups Projects
Commit 5541bbf8 authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Remove cache entry for newly created sessions

parent 023ea5ea
No related merge requests found
......@@ -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;
}
......
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