• This repository has been archived on 19/Jul/2019
  • Stars
    star
    6
  • Rank 2,539,965 (Top 51 %)
  • Language
    Crystal
  • License
    MIT License
  • Created almost 9 years ago
  • Updated about 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Easily add Redis to Kemal

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

More Repositories

1

awesome-ruby

A curated list of awesome Ruby frameworks, libraries and resources. Inspired by awesome-php & awesome-python.
1,247
star
2

fast-http-server

Super fast, zero configuration command line HTTP Server.
Crystal
148
star
3

cryload

HTTP benchmarking tool written in Crystal
Crystal
121
star
4

tren

Give your SQL some love
Crystal
115
star
5

aws

Unofficial AWS SDK for Crystal
Crystal
70
star
6

kemal-chat

Sample application to demonstrate how easy it is to build realtime applications with Kemal using WebSocket.
HTML
63
star
7

cloud_backup

Easily dump your database and store it in the cloud.
Ruby
38
star
8

gencleredestek.com

gencleredestek.com website source code
Ruby
36
star
9

crystal-weekly

Crystal Weekly Website
SCSS
30
star
10

friends-of-crystal

Organizations running Crystal in production
HTML
30
star
11

capistrano-kemal

Capistrano integration for Kemal
Ruby
25
star
12

cuba-generator

Application Generator for Cuba framework
Ruby
23
star
13

crystal_for_rubyists

Crystal For Rubyists
HTML
23
star
14

kemal-github-api

Github API routes benchmark for Kemal
Crystal
21
star
15

kemal-pg

Easily add Postgresql database to Kemal
Crystal
21
star
16

crystal-for-rubyists-en

20
star
17

kemal-mysql

Easily add MySQL database to your Kemal application.
Crystal
14
star
18

safran

Safran için Ruby ile yazılmış Command Line okuyucusu.
Ruby
13
star
19

rust-vs-ruby

Sample applications for 'Rust vs Ruby: Building an API' blog post
Rust
11
star
20

kemal-showdown

🏇 benchmark Kemal with Sinatra-like web frameworks
JavaScript
10
star
21

multipart

Multipart Form Data parser for Crystal
Crystal
10
star
22

safran-api

Safran Unofficial API
Ruby
8
star
23

amethyst-bin

Bash script for automatically setting up an Amethyst skeleton project including dependencies
Shell
7
star
24

calculator-tdd

An example of applied TDD with a simple calculator
Ruby
7
star
25

cuba-datamapper-sample

Sample application to show the simplicity and power of Cuba
Ruby
6
star
26

lyk2017-blog

Ruby
6
star
27

sdogruyol.github.io

serdardogruyol.com source code
SCSS
5
star
28

hn_reader

Hacker News Reader Gui built with Jruby
Ruby
5
star
29

kemal-blog

CSS
4
star
30

russh

Russh: Ruby + SSH. SSH Config Management the Ruby way.
Ruby
4
star
31

kemal-pg-sample

Sample app to demonstrate kemal + postgresql usage
Crystal
4
star
32

critcoin

Crystal
3
star
33

crystal-for-rubyists-cn

Crystal for Rubyists Chinese Version
2
star
34

lyk2015-ruby101

Linux Yaz Kampı 2015 Ruby 101 içeriği
JavaScript
1
star
35

elixir_schizo

Example project from Elixir Sips
Elixir
1
star
36

kemal-multi-path

Crystal
1
star
37

erc20-tracker

Simple ERC20 token tracker
JavaScript
1
star
38

kemalturkiye.org

HTML
1
star
39

homebrew-cryload

Brew tap for Cryload
Ruby
1
star