1 / 9

REDIS (Remote dictionary server)

REDIS (Remote dictionary server). K ALI ROHAN KOKA AZEEM HIRANI. What is Redis. A Simple database Implementing a Dictionary where keys are associated with values.

gagan
Download Presentation

REDIS (Remote dictionary server)

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. REDIS(Remote dictionary server) KALI ROHAN KOKA AZEEM HIRANI

  2. What is Redis • A Simple database Implementing a Dictionary where keys are associated with values. • For e.g.: It can set the key “surname_1987” to the string “Rohan”. • It is open sourced.First released in March 2009. • Redis takes entire dataset in memory. Dump of dataset is created and loaded whenever server is restarted. • Speed is the key feature. Estimated 80000+ operations per second at least

  3. Redis data types Values can be associated with: • Strings – Binary safe so they can hold text, images, compressed data, etc. • Lists – Lists of Strings for operations like append, list length, range of elements, sorting of lists • Sets – Addition and deletion of elements from a set, Intersection, union, subtraction, etc. • Zsets – Zadd, Zrange, Zscore, Zcard

  4. Similarities with memcached Some features like those of Memcached: • All data lives in the memory. • Faster, Light weight • Data exists in the memory • Support Multiple databases • Support for Integer counters • Atomic operations

  5. Differences with memcached • Memcached is not persistent. • Memcached does not save as the purpose is to be used only as a cache. • Redis has capability of being used as main DB for the application. • Memcached uses key value model like Redis but keys can be just string. • In Redis, values can be Lists, Sets, Zsets.

  6. Overview of Commands • Strings- get, set, increment, decrement • Lists- push, pop, length, range, trim • Sets- add, remove, move, length, intersect, intersect • Some more commands useful – save, lastsave (can be used to force and verify disk persistance)

  7. Database Commands These type of commands operate on database. They do not operate on individual keys. • SELECT • MOVE • FLUSHALL • SHUTDOWN • SLAVEOF • DBSIZE • INFO • MONITOR

  8. Advantages of using REDIS • Pick your own Level. • Redis supports Persistence • Replication – Works as a master slave • Publish/Subscribe

  9. Disadvantages • Unreliable • Indexes take a lot of RAM.

More Related