Find tutorials, examples and technical articles that will help you to develop with Redis and Ruby.
In order to use Redis with Ruby you will need a Ruby Redis client. In the following sections, we will demonstrate the use of redis-rb, a Ruby client library for Redis. Additional Ruby clients for Redis can be found under the Ruby section of the Redis Clients page.
The following code creates a connection to Redis using redis-rb:
To adapt this example to your code, make sure that you replace the following values with those of your database:
You can find connect.rb under this directory which you can directly use to test it.
Just execute the below command:
Redis Launchpad is like an “App Store” for Redis sample apps. You can easily find apps for your preferred frameworks and languages. Below are few of these apps. Click here to access the complete lists of apps