Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

sdogruyol/kemal-redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Easily add Redis to Kemal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published