Skip to content

Add Redis session storage support #343

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

0xFarid
Copy link

@0xFarid 0xFarid commented Jul 11, 2025

  • Add RedisSessionStorage class for persistent session storage
  • Implement find_in_redis method in Session class
  • Add session reconstruction from Redis data
  • Add configuration option use_redis_storage (default: true)
  • Add comprehensive tests for Redis functionality
  • Update README with Redis session storage documentation
  • Add Redis dependency to gemspec
  • Handle Redis connection errors gracefully
  • Support multiple Redis URL configuration options
  • Fix session storage for multi-process servers (Puma/Unicorn)

This resolves the 'Session is no longer available in memory' error when using multi-process servers by storing sessions in Redis with 1-hour TTL. Sessions are automatically serialized/deserialized and can be shared across different worker processes.

- Add RedisSessionStorage class for persistent session storage
- Implement find_in_redis method in Session class
- Add session reconstruction from Redis data
- Add configuration option use_redis_storage (default: true)
- Add comprehensive tests for Redis functionality
- Update README with Redis session storage documentation
- Add Redis dependency to gemspec
- Handle Redis connection errors gracefully
- Support multiple Redis URL configuration options
- Fix session storage for multi-process servers (Puma/Unicorn)

This resolves the 'Session is no longer available in memory' error
when using multi-process servers by storing sessions in Redis with
1-hour TTL. Sessions are automatically serialized/deserialized
and can be shared across different worker processes.
@0xFarid 0xFarid closed this Jul 11, 2025
@0xFarid 0xFarid deleted the redis-session branch July 11, 2025 20:42
@0xFarid 0xFarid restored the redis-session branch July 11, 2025 20:43
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