History
 Early 2009 - Salvatore Sanfilippo, an Italian developer,
started the Redis project.
 Working on a real-time web analytics solution and
found that MySQL could not provide the necessary
performance.
 June 2009 - Redis was deployed in production for the
LLOOGG real-time web analytics website
 March 2010 - VMWare hired Sanfilippo to work full-time
on Redis (remains BSD licensed)
 Subsequently, VMWare hired Pieter Noordhuis, a major
Redis contributor, to assist on the project.
What is Redis ?
 Open-source data structure server
 NoSQL Database
 Organizes data using the key-value storage method
 Perfect for high-performance jobs
 Good for caching or using as a message broker
Features
 Data Structures server
 Support different kind of values
 Free and open source
 Easy to use
 Easy to learn
Goodness
 Written in C (C99 standard)
 No dependencies
 Detailed command reference that lists time complexity
in Big-O notation. • Very easy to build / install (it’ll
probably “just work”)
Data Structure
 Strings
 Strings-as-integers (used by INCR/DECR)
 List of Strings
 Set of Strings (unique list)
 Sorted Set of Strings (and weights) (ZSET)
Command Overview
 Strings: get, set, increment, decrement
 Lists: push, pop, length, range, trim
 Sets: add, remove, move, length, intersect union, diff, random
 Other: save, lastsave can be used to force & verify disk persistence
Atomic Operations
 LPUSH / RPUSH: append to head/tail of list
 LPOP / RPOP: return & remove first/last element of list
 RPOPLPUSH: return & remove the last element of source
list and push to the head of the destination list
 GETSET: set a key to a new value and return the old value
 MGET/MSET: get or set multiple keys to multiple values
 SMOVE: move a value from one set to another
 No way to group commands (transactions)
Users
Course - Eduonix
Learn Redis from Scratch
 Lectures:
31
 Video:
3 hours of Content
 Languages:
English
 Includes:
30 day money back guarantee! Lifetime Access.
No Limits! Certificate of Completion
In this course you will learn:
 What is Redis and what it is best used for?
 Various different Redis data structures such as Lists,
Sets, and Hashes
 What are Redis commands such as get, set, expire,
scan, config, commands and client
 How to persist data to disk and different methods of
persisting including RDB, AOF, and snapshotting
 How to build a task manager website using NodeJS,
Redis and Twitter Bootstrap.
Section’s Covered in this Course:
 Intro To Redis
 Getting Started With Redis
 Learning Redis Commands
 Working With Data Types
 Data Persistence
 Redis & Node.js - Task List Project
 Course Summary
Reference Link
https://www.eduonix.com/courses/Web-Development/learn-redis-from-scratch
To Get this Course at $10 Use Coupon Code : OFFER10
Connect with us on Social Platforms
Thank You

Introduction to Redis

  • 1.
    History  Early 2009- Salvatore Sanfilippo, an Italian developer, started the Redis project.  Working on a real-time web analytics solution and found that MySQL could not provide the necessary performance.  June 2009 - Redis was deployed in production for the LLOOGG real-time web analytics website  March 2010 - VMWare hired Sanfilippo to work full-time on Redis (remains BSD licensed)  Subsequently, VMWare hired Pieter Noordhuis, a major Redis contributor, to assist on the project.
  • 2.
    What is Redis?  Open-source data structure server  NoSQL Database  Organizes data using the key-value storage method  Perfect for high-performance jobs  Good for caching or using as a message broker
  • 3.
    Features  Data Structuresserver  Support different kind of values  Free and open source  Easy to use  Easy to learn
  • 4.
    Goodness  Written inC (C99 standard)  No dependencies  Detailed command reference that lists time complexity in Big-O notation. • Very easy to build / install (it’ll probably “just work”)
  • 5.
    Data Structure  Strings Strings-as-integers (used by INCR/DECR)  List of Strings  Set of Strings (unique list)  Sorted Set of Strings (and weights) (ZSET)
  • 6.
    Command Overview  Strings:get, set, increment, decrement  Lists: push, pop, length, range, trim  Sets: add, remove, move, length, intersect union, diff, random  Other: save, lastsave can be used to force & verify disk persistence
  • 7.
    Atomic Operations  LPUSH/ RPUSH: append to head/tail of list  LPOP / RPOP: return & remove first/last element of list  RPOPLPUSH: return & remove the last element of source list and push to the head of the destination list  GETSET: set a key to a new value and return the old value  MGET/MSET: get or set multiple keys to multiple values  SMOVE: move a value from one set to another  No way to group commands (transactions)
  • 8.
  • 9.
    Course - Eduonix LearnRedis from Scratch  Lectures: 31  Video: 3 hours of Content  Languages: English  Includes: 30 day money back guarantee! Lifetime Access. No Limits! Certificate of Completion
  • 10.
    In this courseyou will learn:  What is Redis and what it is best used for?  Various different Redis data structures such as Lists, Sets, and Hashes  What are Redis commands such as get, set, expire, scan, config, commands and client  How to persist data to disk and different methods of persisting including RDB, AOF, and snapshotting  How to build a task manager website using NodeJS, Redis and Twitter Bootstrap.
  • 11.
    Section’s Covered inthis Course:  Intro To Redis  Getting Started With Redis  Learning Redis Commands  Working With Data Types  Data Persistence  Redis & Node.js - Task List Project  Course Summary
  • 12.
    Reference Link https://www.eduonix.com/courses/Web-Development/learn-redis-from-scratch To Getthis Course at $10 Use Coupon Code : OFFER10 Connect with us on Social Platforms
  • 13.