1 / 8

Róbert Móro

Róbert Móro. redis. In-memory key-value store Master-slave replication Persistence RDB (snapshots) AOF (append-only log file) Supported languages Ruby, Python, Java, C, PHP, Javascript (Node.js). redis. Data types String, List, Set, Hash, Sorted set Used in

cirila
Download Presentation

Róbert Móro

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Róbert Móro

  2. redis • In-memory key-value store • Master-slave replication • Persistence • RDB (snapshots) • AOF (append-only log file) • Supported languages • Ruby, Python, Java, C, PHP, Javascript (Node.js)

  3. redis • Data types • String, List, Set, Hash, Sorted set • Used in • Engine Yard, Github, stackoverflow, …

  4. redis • Data types • String, List, Set, Hash, Sorted set • Used in • Engine Yard, Github, stackoverflow, … ALEF

  5. redis data types • String • can contain any kind of data, for instance a JPEG image or a serialized object • INCR, DECR, APPEND, ... • List • lists of strings, sorted by insertion order • LPUSH, RPUSH, ...

  6. redis data types • Set • an unordered collection of Strings • it is possible to add, remove, and test for existence of members in O(1) • SADD, SUNION, SINTER, SDIFF, SCARD, ... • Hash • maps between string fields and string values • HGETALL, HSET, HMSET, HKEYS, HVALS, ...

  7. redis data types • SortedSet • non-repeating collections of Strings similar to Set • every member of a Sorted Set is associated with score • scores may be repeated • members of Sorted Set are ordered by their score • ZRANGE, ZRANK, ZSCORE, ZCOUNT, ...

  8. When to use redis? • Speed is critical • Data can be contained in RAM • Loss of some data is acceptable • http://redis.io

More Related