O'Reilly logo

CoffeeScript Application Development Cookbook by Mike Hatfield

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with Redis

Redis is an open source key-value database that provides a high-performance cross-platform server to store your application's data.

Unlike Sqlite, Redis does not have a fixed schema and is therefore a schemaless data store. It allows us to store objects that can be referenced by a key value.

In this section, we will see how to use CoffeeScript to store, retrieve, and delete data with Redis.

Tip

You can find more information, including documentation and installation instructions at the official Redis website at http://redis.io/.

Once you have installed Redis, install the Redis NPM package. It will allow us to connect, store, and retrieve values. It can be installed using the following command:

npm install redis --save

Connecting to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required