Skip to content

Conversation

hogelog
Copy link

@hogelog hogelog commented May 21, 2023

The current redis-session-store has been implemented to throw the exists command to redis twice.

key_exists_with_fallback?(value)

key_exists?(sid.private_id) ? sid.private_id : sid.public_id

With this PR implementation, a session that has not been migrated to private_id will throw get commands to private_id and public_id twice. But migrated session will only get once, which I think is more efficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant