Popularity
4.7
Stable
Activity
0.0
Stable
9
2
5

Programming language: Crystal
Tags: Framework Components    

kemal-redis alternatives and similar shards

Based on the "Framework Components" category.
Alternatively, view kemal-redis alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of kemal-redis or a related project?

Add another 'Framework Components' Shard

README

kemal-redis

Easily add Redis to your Kemal application.

Installation

Add this to your application's shard.yml:

dependencies:
  kemal-redis:
    github: sdogruyol/kemal-redis

Usage

require "kemal"
require "kemal-redis"

redis_connect # With default host and port

# Make sure to yield `env`.
get "/" do |env|
  redis.set("foo", "bar")
  foo = redis.get("foo")
  "Value of foo - #{foo}"
end

You can specify different host and port like below

redis_connect host: "177.11.22.33", port: 8801

Examples

To check more examples of Redis see crystal-redis-example.

Contributing

  1. Fork it ( https://github.com/sdogruyol/kemal-redis/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors