Installation

Requirements

  • Crystal 1.0.0 or higher

  • Redis 5.0+ (for Redis and Clustered Redis stores)

Add Dependency

Add the session shard to your shard.yml:

dependencies:
  session:
    github: azutoolkit/session
    version: ~> 1.0

Install

Run shards to install the dependency:

shards install

Verify Installation

Create a test file to verify the installation:

Run the test:

Optional Dependencies

Redis Support

For Redis-based stores, ensure you have Redis installed and running:

Verify Redis connection:

Next Steps

Last updated

Was this helpful?