Coder Social home page Coder Social logo

the-little-redis-book's Introduction

About

The Little Redis Book is a free book introducing Redis.

The book was written by Karl Seguin, with Perry Neal's assistance.

If you liked this book, maybe you'll also like The Little MongoDB Book.

License

The book is freely distributed under the Attribution-NonCommercial 3.0 Unported license.

Translations

Formats

The book is written in Markdown and converted to PDF using Pandoc.

The TeX template makes use of Lena Herrmann's JavaScript highlighter.

Kindle and ePub format provided using Pandoc.

Generating books

Packages listed below are for Ubuntu. If you use another OS or distribution names would be similar.

PDF

Dependencies

Packages:

  • pandoc
  • texlive-xetex
  • texlive-latex-extra
  • texlive-latex-recommended

You should have some fonts installed too. Or you could change them to other ones if you want. Consider that fonts could cause building troubles.

Building

Run make en/redis.pdf.

ePub

Dependencies

Packages:

  • pandoc

Building

Run make en/redis.epub.

Mobi

Dependencies

Packages:

  • pandoc

You should have KindleGen installed too.

Building

Run make en/redis.mobi.

Title Image

A PSD of the title image is included. The font used is Comfortaa.

the-little-redis-book's People

Contributors

arturdryomov avatar encukou avatar fgm avatar hdznrrd avatar jasonlai256 avatar jesseobrien avatar karlseguin avatar kisielk avatar msolomon avatar nainglinaung avatar ognevsky avatar sandroconforto avatar sillygwailo avatar skyline75489 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

the-little-redis-book's Issues

Redundancy in Command, Keys and Values

In “Command, Keys and Values”, the first two paragraphs both say almost the same thing. I assume a dejà vu wasn't intentional.

Also, in the title, maybe Commands should be plural?

Russian version

I have fork of your repository with translation into the russian language. Can you put link to it in your README ?

Thanks.

tightlist error

hi, when trying to make a PDF from a markdown file that includes a list, i get the following error.

! Undefined control sequence.
l.213   \tightlist

i have a fix for this, if you want to give me perms to submit a branch and make a pull request i'll submit it, or you can just add the following line to pdf-template.tex:

\def\tightlist{}

I added it to the % Listings section, and now my .md file compiles and the list is rendered properly.

can't make the pdf

When I generate the pdf of the cn version of this book, following error will occur:

markdown2pdf: /tmp/pandoc/redis.log: hGetContents: invalid argument (invalid UTF-8 byte sequence)

I am already search google and some documents, but i can't solve the problem. How should i do for it?

And i can use pandoc to generate the epub successfully.

Chapter 1 - Memory and Persistence: Typo?

In chapter 1, Memory and Persistence, first paragraph you write

" By default, Redis will save the database every 60 seconds if 1000 or more keys have changed all the way to 15 minutes if only a 9 keys has changed"

Did you mean

" By default, Redis will save the database every 60 seconds if 1000 or more keys have changed all the way to 15 minutes if only a key has changed"

or

" By default, Redis will save the database every 60 seconds if 1000 or more keys have changed all the way to 15 minutes if only 9 keys have changed"?

Should rename keys to ids for consistency

Actually for this issue #32, there are two places need to be fixed in the book, and the commit 469405d just fixed one of them.

The keys in below code:

keys = redis.lrange('newusers', 0, 10)
redis.mget(*keys.map {|u| "users:#{u}"})

should be renamed for consistency. (as well a minor range issue: 10 to 9)

ids = redis.lrange('newusers', 0, 9)
redis.mget(*ids.map {|u| "users:#{u}"})

There is also a minor error in this sentence:

...anything you want sorted by an some integer...

(error) ERR Operation against a key holding the wrong kind of value

In the data structures chapter, you get us to create a couple of sets, friends:leto and friends:duncan. In the next section, you get us to add scores to the set items, using zadd friends:leto 100 ghanima etc. I get the following error, though:

(error) ERR Operation against a key holding the wrong kind of value

Are sets and sorted sets completely different data structures? I was able to get through the chapter by choosing a different name for the sorted lists (zadd sfriends etc.) and couldn't find anything online to support the assertion that sets and sorted sets are two distinct data types.

Should hash examples use JSON strings

Examples like set users:leto "{name: leto, planet: dune, likes: [spice]}" should have quotes surround the hash keys. As in other languages , it's hard to parse "{name: leto, planet: dune, likes: [spice]}" such kind of strings without quotes surround hash keys.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.