Skip to content

Commit c61ea5f

Browse files
committed
use IMap#delete that doesn't deserialize removed value to improve performance
1 parent b316fd1 commit c61ea5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-session/src/main/java/org/springframework/session/hazelcast/HazelcastSessionRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public HazelcastSession getSession(String id) {
232232
}
233233

234234
public void delete(String id) {
235-
this.sessions.remove(id);
235+
this.sessions.delete(id);
236236
}
237237

238238
public Map<String, HazelcastSession> findByIndexNameAndIndexValue(String indexName,

0 commit comments

Comments
 (0)