This is a Cable.cr backend extension for stefanwille/crystal-redis.
-
Add the dependency to your
shard.yml:dependencies: cable: github: cable-cr/cable cable-redis-legacy: github: cable-cr/cable-redis-legacy
-
Run
shards install
require "cable"
require "cable-redis-legacy"
Cable.configure do |settings|
settings.url = ENV.fetch("CABLE_BACKEND_URL", "redis://localhost:6379")
settings.backend_class = Cable::RedisLegacyBackend
# Additional settings for using a pooled client
# Only available with this shard extension
settings.pool_redis_publish = false
settings.redis_pool_size = 5
settings.redis_pool_timeout = 5.0
# ... all other Cable config settings
end- Make the update
- Add a spec and run
crystal spec - Format it
crystal tool format spec/ src/ - Ameba
./bin/ameba - Commit it
- GO TO 1
- Fork it (https://github.com/cable-cr/cable-redis-legacy/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
- Jeremy Woertink - creator and maintainer