R bert m ro
Download
1 / 8

- PowerPoint PPT Presentation


  • 113 Views
  • Uploaded on

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

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about '' - cirila


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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

Redis
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)


Redis1
redis

  • Data types

    • String, List, Set, Hash, Sorted set

  • Used in

    • Engine Yard, Github, stackoverflow, …


Redis2
redis

  • Data types

    • String, List, Set, Hash, Sorted set

  • Used in

    • Engine Yard, Github, stackoverflow, … ALEF


Redis data types
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, ...


Redis data types1
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, ...


Redis data types2
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, ...


When to use redis
When to use redis?

  • Speed is critical

  • Data can be contained in RAM

  • Loss of some data is acceptable

  • http://redis.io