Open
Description
RedisIndexedSessionRepository
and RedisSessionExpirationPolicy
create a lot of single-use proxies by relying on BoundHashOperations
.
For instance in this case:
This showed up in our production profiler because of hundreds of MB allocated in java.lang.reflect.Method
:
If I understand the code correctly, this is done purely for convenience and could simply be replaced by the following code:
String key = getSessionKey(sessionId);
sessionRedisOperations.opsForHash().putAll(key, this.delta);
Or am I overlooking something?