https://github.com/stefanwille/crystal-redis-examples
Examples for crystal-redis
https://github.com/stefanwille/crystal-redis-examples
crystal crystal-redis examples redis
Last synced: about 1 year ago
JSON representation
Examples for crystal-redis
- Host: GitHub
- URL: https://github.com/stefanwille/crystal-redis-examples
- Owner: stefanwille
- Created: 2015-05-15T13:48:08.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-09-23T14:21:17.000Z (over 8 years ago)
- Last Synced: 2025-05-12T23:10:06.275Z (about 1 year ago)
- Topics: crystal, crystal-redis, examples, redis
- Language: Crystal
- Homepage: https://github.com/stefanwille/crystal-redis
- Size: 9.77 KB
- Stars: 9
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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
```