spring-session icon indicating copy to clipboard operation
spring-session copied to clipboard

Allow Serialization based on session attribute name in Redis

Open rwinch opened this issue 9 years ago • 1 comments

This is a brain storm on how to handle https://github.com/spring-projects/spring-session/issues/348#issuecomment-181205839

For example, a org.springframework.core.convert.converter.Converter<Map<String,Object>,Map<byte[],byte[]>> could be used to prior to saving the delta. Then the we could provide a org.springframework.core.convert.converter.Converter<Map<byte[],byte[]>,Map<String,Object>> to convert back to the objects just after we load the data.

This would mean users could provide a mapping of session attribute name to the object rather than having to include class names in the serialization data.

rwinch avatar Feb 08 '16 23:02 rwinch

This could help solve - Issue#1330 RedisOperationsSessionRepository loadSession ClassCastException

aterleto avatar Feb 03 '19 21:02 aterleto