View Source Chord.Backend.Redis (Chord v0.1.4)
Redis-based backend for Chord, providing context-level state and delta management with versioning support.
Configuration
To use Redis as a backend, follow these steps:
- Start a Redis connection process using
Redix
with your desired configuration:
{:ok, _} = Redix.start_link("redis://localhost:6379", name: :my_redis)
- Set the Redis client in the application environment:
Application.put_env(:chord, :redis_client, :my_redis)