crystal-redis-examples

Version, currently master branch1 version
  • master branchlatestSep 23, 2017

github.com/stefanwille/crystal-redis-examples

Examples for crystal-redis

10 stars
0 dependents
License: BSD

Installation

# Add this to your shard.yml
dependencies:
  crystal-redis-examples:
    github: stefanwille/crystal-redis-examples
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
no constraint declared
License
BSD

Dependencies

Runtime Dependencies

  • redis~> 1.7.1git: https://github.com/stefanwille/crystal-redis.git

README

## Examples for Crystal-Redis

These examples are meant to help you get you started with the [Crystal Redis client](https://github.com/stefanwille/crystal-redis).

## Installation

You need to install the crystal-redis client into this project:

```bash
$ shards install
```

## Running the Examples

All examples are in the [src/](https://github.com/stefanwille/crystal-redis-examples/tree/master/src) directory.

Read the source code of an example that you are interested in. It is best to start with [src/basic.cr](https://github.com/stefanwille/crystal-redis-examples/blob/master/src/basic.cr).

Then run the example. For instance, to run `src/basic.cr`, use `crystal run` in the terminal:

```bash
$ crystal run src/basic.cr
```