spring-projects / spring-projects/spring-session

Add Converter to RedisOperationsSessionRepository

Open
#618 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

in: redis type: enhancement
Dominant language
Java
Stars
1.9k
Forks
1.2k
Avg merge
4h 27m
Merged PRs (30d)
55

Description

It would be nice if RedisOperationsSessionRepository had two Converter<Map<String,Object> injected into it.

The first would be ran just prior to saving the delta of the session attributes. This would allow custom serialization based on the keys.

The second would be ran just after reading in the session. This would allow custom deserialization based on the keys.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating RedisOperationsSessionRepository and trace where session-attribute deltas are saved and sessions are read. Confirm how Converter<Map<String,Object>> instances could be injected and invoked at those two points; done means custom key-based serialization and deserialization are supported without changing unrelated session behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, redis, spring
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.