marten_redis_session
Version, currently 0.1.03 versions
- 0.3.0latestAug 3, 2025
- 0.2.0not indexedJul 26, 2026
- 0.1.0not indexedJul 26, 2026
github.com/martenframework/marten-redis-session
A Redis session store for the Marten web framework.
Nothing has been indexed for 0.1.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
marten_redis_session:
github: martenframework/marten-redis-session
version: ~> 0.1.0Then run:
shards installshard.yml
No shard.yml has been indexed for 0.1.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
Marten Redis Session
Marten Redis Session provides a Redis session store for the Marten web framework.
Installation
Simply add the following entry to your project's shard.yml:
dependencies:
marten_redis_session:
github: martenframework/marten-redis-session
And run shards install afterward.
Configuration
First, add the following requirement to your project's src/project.cr file:
require "marten_redis_session"
Then you can configure your project to use the Redis session store by ensuring that the sessions.store setting is set to :redis:
Marten.configure do |config|
config.sessions.store = :redis
end
Congrats! You’re in! From now on, your session data will be persisted in Redis.
It should be noted that by default the Redis session store will attempt to connect to Redis on localhost and port 6379. This can be changed by setting a different URI through the use of the redis_session.uri setting:
Marten.configure do |config|
config.redis_session.uri = "redis:///"
end
It is also worth mentioning that you can leverage the redis_session.namespace setting to configure a "namespace" for the Redis keys that will be used to persist session data. This can be useful if your Redis instance is shared for various purposes and you need to prevent conflicts between session data keys and other Redis keys. For example:
Marten.configure do |config|
config.redis_session.namespace = "sessions"
end
Authors
Morgan Aubert (@ellmetha) and contributors.
License
MIT. See LICENSE for more details.
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.0- Tagged
- Jul 26, 2026
- Commit
2c0557bbbe10- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/martenframework/marten-redis-session
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 3