These examples are meant to help you get you started with the Crystal Redis client.
You need to install the crystal-redis client into this project:
$ shards install
All examples are in the src/ directory.
Read the source code of an example that you are interested in. It is best to start with src/basic.cr.
Then run the example. For instance, to run src/basic.cr
, use crystal run
in the terminal:
$ crystal run src/basic.cr