Day 1: CRUD and Datatypes

Since the command-line interface (CLI) is of such primary importance to the Redis development team—and loved by users everywhere—we’re going to spend Day 1 looking at many of the 124 commands available. Of primary importance is its sophisticated datatypes and how they can query in more ways than simply “retrieve the value of this key.”

Getting Started

Redis is available through a few package builders like Homebrew for Mac but is also rather painless to build.[53] We’ll be working off version 2.4. Once you have it installed, you can start up the server by calling this:

 
$ ​redis-server

It won’t run in the background by default, but you can make that happen by appending &, or you can just open another terminal. Next ...

Get Seven Databases in Seven Weeks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.