SlideShare a Scribd company logo
2_Redis.pptx very useful for begginers yes
What Redis ?
• Redis is a database
API Server
Blog Post Images
Bytes comments
Redis is Fast
Why use Redis ?
Why is Redis fast ?
1 All data is stored in memory
2 Data is organized in simple data structure
3 Redis has simple feature set
Traditional Database
Memory Hard Drive
Dataset
API Server
Fast Slow
Traditional Database
Memory Hard Drive
Dataset
API Server
Fast
Why is Redis fast ?
1 All data is stored in memory
2 Data is organized in simple data structure
3 Redis has simple feature set
Double
Linked
List
Link
List
Hash
maps
Sorted
Sets
Key
Value
pair
Why is Redis fast ?
1 All data is stored in memory
2 Data is organized in simple data structure
3 Redis has simple feature set
Traditional Data Feature set
Enforced data schema
Triggers
Foreign Key constraints
Uniqueness of arbitrary properties
SQL support
Transaction rollback
Redis Features Set
… Not Much
Why is Redis fast ?
1 All data is stored in
memory
2 Data is organized in
simple data structure
3 Redis has simple
feature set
Because of these
reason Redis is
different than other
databases !
Do not skip this video!
Required setup in here, even if
you already have a running copy
of Redis
Setup
Redis
Install
Redis Cloud
redis.com
Install + run on your local computer
Commands
Data Structures
Structure Type What it contains Structure read/write ability
STRING Strings, integers, or floating-point
values
Operate on the whole string, parts, increment/
decrement the integers and floats
LIST Linked list of strings Push or pop items from both ends, trim based on
offsets, read individual or multiple items, find or
remove items by value
SET Unordered collection of unique
Strings
Add, fetch, or remove individual items, check
membership, intersect, union, difference, fetch
random items
HASH Unordered hash table of keys to
values
Add, fetch, or remove individual items, fetch the
whole hash
ZSET Ordered mapping of string
members to floating-point
scores, ordered by score
Add, fetch, or remove individual values, fetch items
based on score ranges or member value
https://redis.io/commands/
Commands
Commands are used to save or retrieve data in
Redis
STRINGs commands
SET MESSAGE “Hello
World”
App Server
Command Response
‘OK’
Redis
MESSAGE ‘Hello World’
List
Create Retrieve Remove Operations
List commands
LPUSH
RPUSH
LSET
LINDEX
LRANGE
LINSERT
RPUSHX
LPUSHX DEL
LPOP
RPOP
LREM
LMPOP
LLEN
LPOS
LTRIM
LMOVE
Set
Create Retrieve Remove Operations
Set commands
SADD SMEMBERS DEL
SPOP
SREM
SCARD
SDIFF
SDIFFSTORE
SINTER
SINTERSTORE
SISMEMBER
SUNION
SMOVE
SUNIONSTORE
SRANDMEMBER
Hash
Create Retrieve Remove Operations
Hash commands
HSET
HMSET
HSETNX
HGET
HGETALL
DEL
HDEL
HLEN
HINCRBY
HSTRLEN
HRANDFIELD
HMGET
HVALS
HKEYS
ZSET
Create Retrieve Remove Operations
Hash commands
HSET
HMSET
HSETNX
HGET
HGETALL
DEL
HDEL
HLEN
HINCRBY
HSTRLEN
HRANDFIELD
HMGET
HVALS
HKEYS

More Related Content

Similar to 2_Redis.pptx very useful for begginers yes (20)

PDF
mar07-redis.pdf
AnisSalhi3
 
PDF
#SydPHP - The Magic of Redis
Aaron Weatherall
 
ODP
Redis - Your Magical superfast database
the100rabh
 
PDF
Use Redis in Odd and Unusual Ways
Itamar Haber
 
PPTX
Redis Modules - Redis India Tour - 2017
HashedIn Technologies
 
PDF
Steam Learn: An introduction to Redis
inovia
 
PDF
An Introduction to Redis for .NET Developers.pdf
Stephen Lorello
 
PPTX
Get more than a cache back! - ConFoo Montreal
Maarten Balliauw
 
PPTX
Redis and it's data types
Aniruddha Chakrabarti
 
PDF
Redis overview
Ashokkumar T A
 
PPT
NoSQL Databases
Carlos Alberto Benitez
 
PPTX
Redis meetup
Nikhil Dole
 
PDF
Introduction to Redis
Saeid Zebardast
 
PDF
Redispresentation apac2012
Ankur Gupta
 
PPTX
redis-demo.pptx
SNEHKUMAR30
 
PDF
Redis Installation Configuration And Implementation
Abhijeet Shekhar
 
PPTX
Introduction to Redis
TO THE NEW | Technology
 
PDF
Redis basics
Arthur Shvetsov
 
PDF
redis_tutoria0l for new learners step from scratch.pdf
BharathiRaja981061
 
ODP
Beyond relational database - Building high performance websites using Redis a...
Dinh Pham
 
mar07-redis.pdf
AnisSalhi3
 
#SydPHP - The Magic of Redis
Aaron Weatherall
 
Redis - Your Magical superfast database
the100rabh
 
Use Redis in Odd and Unusual Ways
Itamar Haber
 
Redis Modules - Redis India Tour - 2017
HashedIn Technologies
 
Steam Learn: An introduction to Redis
inovia
 
An Introduction to Redis for .NET Developers.pdf
Stephen Lorello
 
Get more than a cache back! - ConFoo Montreal
Maarten Balliauw
 
Redis and it's data types
Aniruddha Chakrabarti
 
Redis overview
Ashokkumar T A
 
NoSQL Databases
Carlos Alberto Benitez
 
Redis meetup
Nikhil Dole
 
Introduction to Redis
Saeid Zebardast
 
Redispresentation apac2012
Ankur Gupta
 
redis-demo.pptx
SNEHKUMAR30
 
Redis Installation Configuration And Implementation
Abhijeet Shekhar
 
Introduction to Redis
TO THE NEW | Technology
 
Redis basics
Arthur Shvetsov
 
redis_tutoria0l for new learners step from scratch.pdf
BharathiRaja981061
 
Beyond relational database - Building high performance websites using Redis a...
Dinh Pham
 

Recently uploaded (17)

PPTX
Internet Basics for class ix. Unit I. Describe
ASHUTOSHKUMAR1131
 
PDF
GEO Strategy 2025: Complete Presentation Deck for AI-Powered Customer Acquisi...
Zam Man
 
PPTX
MSadfadsfafdadfccadradfT_Presentation.pptx
pahalaedward2
 
PDF
The AI Trust Gap: Consumer Attitudes to AI-Generated Content
Exploding Topics
 
PDF
UI/UX Developer Guide: Tools, Trends, and Tips for 2025
Penguin peak
 
PPTX
Artificial-Intelligence-in-Daily-Life (2).pptx
nidhigoswami335
 
PPTX
InOffensive Security_cybersecurity2.pptx
wihib17507
 
PDF
How Much GB RAM Do You Need for Coding? 5 Powerful Reasons 8GB Is More Than E...
freeshopbudget
 
PPTX
The Internet of Things (IoT) refers to a vast network of interconnected devic...
chethana8182
 
PPTX
Finally, My Best IPTV Provider That Understands Movie Lovers Experience IPTVG...
Rafael IPTV
 
PPTX
AI at Your Side: Boost Impact Without Losing the Human Touch (SXSW 2026 Meet ...
maytaldahan
 
PPTX
The Monk and the Sadhurr and the story of how
BeshoyGirgis2
 
DOCX
An_Operating_System by chidi kingsley wo
kingsleywokocha4
 
PPTX
Birth-after-Previous-Caesarean-Birth (1).pptx
fermann1
 
PPTX
The Internet of Things (IoT) refers to a vast network of interconnected devic...
chethana8182
 
PPT
1965 INDO PAK WAR which Pak will never forget.ppt
sanjaychief112
 
PDF
The Internet of Things (IoT) refers to a vast network of interconnected devic...
chethana8182
 
Internet Basics for class ix. Unit I. Describe
ASHUTOSHKUMAR1131
 
GEO Strategy 2025: Complete Presentation Deck for AI-Powered Customer Acquisi...
Zam Man
 
MSadfadsfafdadfccadradfT_Presentation.pptx
pahalaedward2
 
The AI Trust Gap: Consumer Attitudes to AI-Generated Content
Exploding Topics
 
UI/UX Developer Guide: Tools, Trends, and Tips for 2025
Penguin peak
 
Artificial-Intelligence-in-Daily-Life (2).pptx
nidhigoswami335
 
InOffensive Security_cybersecurity2.pptx
wihib17507
 
How Much GB RAM Do You Need for Coding? 5 Powerful Reasons 8GB Is More Than E...
freeshopbudget
 
The Internet of Things (IoT) refers to a vast network of interconnected devic...
chethana8182
 
Finally, My Best IPTV Provider That Understands Movie Lovers Experience IPTVG...
Rafael IPTV
 
AI at Your Side: Boost Impact Without Losing the Human Touch (SXSW 2026 Meet ...
maytaldahan
 
The Monk and the Sadhurr and the story of how
BeshoyGirgis2
 
An_Operating_System by chidi kingsley wo
kingsleywokocha4
 
Birth-after-Previous-Caesarean-Birth (1).pptx
fermann1
 
The Internet of Things (IoT) refers to a vast network of interconnected devic...
chethana8182
 
1965 INDO PAK WAR which Pak will never forget.ppt
sanjaychief112
 
The Internet of Things (IoT) refers to a vast network of interconnected devic...
chethana8182
 
Ad

2_Redis.pptx very useful for begginers yes

  • 2. What Redis ? • Redis is a database API Server Blog Post Images Bytes comments
  • 3. Redis is Fast Why use Redis ?
  • 4. Why is Redis fast ? 1 All data is stored in memory 2 Data is organized in simple data structure 3 Redis has simple feature set
  • 5. Traditional Database Memory Hard Drive Dataset API Server Fast Slow
  • 6. Traditional Database Memory Hard Drive Dataset API Server Fast
  • 7. Why is Redis fast ? 1 All data is stored in memory 2 Data is organized in simple data structure 3 Redis has simple feature set
  • 9. Why is Redis fast ? 1 All data is stored in memory 2 Data is organized in simple data structure 3 Redis has simple feature set
  • 10. Traditional Data Feature set Enforced data schema Triggers Foreign Key constraints Uniqueness of arbitrary properties SQL support Transaction rollback Redis Features Set … Not Much
  • 11. Why is Redis fast ? 1 All data is stored in memory 2 Data is organized in simple data structure 3 Redis has simple feature set Because of these reason Redis is different than other databases !
  • 12. Do not skip this video! Required setup in here, even if you already have a running copy of Redis
  • 16. Structure Type What it contains Structure read/write ability STRING Strings, integers, or floating-point values Operate on the whole string, parts, increment/ decrement the integers and floats LIST Linked list of strings Push or pop items from both ends, trim based on offsets, read individual or multiple items, find or remove items by value SET Unordered collection of unique Strings Add, fetch, or remove individual items, check membership, intersect, union, difference, fetch random items HASH Unordered hash table of keys to values Add, fetch, or remove individual items, fetch the whole hash ZSET Ordered mapping of string members to floating-point scores, ordered by score Add, fetch, or remove individual values, fetch items based on score ranges or member value https://redis.io/commands/
  • 17. Commands Commands are used to save or retrieve data in Redis
  • 19. SET MESSAGE “Hello World” App Server Command Response ‘OK’ Redis MESSAGE ‘Hello World’
  • 20. List
  • 21. Create Retrieve Remove Operations List commands LPUSH RPUSH LSET LINDEX LRANGE LINSERT RPUSHX LPUSHX DEL LPOP RPOP LREM LMPOP LLEN LPOS LTRIM LMOVE
  • 22. Set
  • 23. Create Retrieve Remove Operations Set commands SADD SMEMBERS DEL SPOP SREM SCARD SDIFF SDIFFSTORE SINTER SINTERSTORE SISMEMBER SUNION SMOVE SUNIONSTORE SRANDMEMBER
  • 24. Hash
  • 25. Create Retrieve Remove Operations Hash commands HSET HMSET HSETNX HGET HGETALL DEL HDEL HLEN HINCRBY HSTRLEN HRANDFIELD HMGET HVALS HKEYS
  • 26. ZSET
  • 27. Create Retrieve Remove Operations Hash commands HSET HMSET HSETNX HGET HGETALL DEL HDEL HLEN HINCRBY HSTRLEN HRANDFIELD HMGET HVALS HKEYS

Editor's Notes

  • #3: Redis is like any other database where you store information in strings image blog post, comments and bytes like image etc. After storing information, we can then retrieve it later on by writing queries. This behaviour is similar to any other databases. And how redis is different and why do we decide to use right us over any other database ?
  • #4: Well, answer is very simple. Often engineers and myself use redis for one reason, it is very fast. Redis can store and retrieve data extremely quickly ?
  • #6: Most databases store all their information between both the memory of a computer and a hard driver. Accessing data in memory is fast, but getting data that is stored on the hard disk is relatively slow.
  • #7: Redis makes a simple decision here, rather than storing on hard disk, it keeps all the data in memory. And that means that accessing any data inside of a registered database is usually a very fast by default. However, because of this approach there are few limitation of this approach. It means that by default, it can be challenging to work with a dataset that is larger than the amount of memory that you computer has. For example, if your database has 100 giga bytes of data but you memory is somewhere around 16 giga bytes then this data will not for our database. This might sound like a tremendous problem, but do not worry about it. There are certain strategies that was available that are working of this limitations. .
  • #8: Alright, lets move the second reason, the second reason is that Redis stores all of its data or organizes all of its data in simple data structures.
  • #9: Like so on. These different data structures have very well known and very well understood performance characteristic. We can decide and organize our information in memory. Hence we have very good idea, how to efficiently query the data.
  • #10: Finally. redis is very is fast because it is very simple in nature
  • #11: Other databases like say MySQL and so on choose to layer on feature upon feature to make them easier to use. But all those additional features have big performance problems. Redis take a different approach Rather than stuffing in a ton of different features into the database, it is kept very simple on purpose.
  • #12: So right away we are under sting here in this video that this is very fast. Because of 3 reasons, spell it We use redis because it is fast and it is fast because of these reason right here. So in order to use Redis, we have to understand how to fit our data or organize it using these simple data structures And we have to understand how to kind of work ourself around this limited features set. That really starts and gives you the picture what the redis is We need to understand how to work with data, how to organize it, and how to work with this simple set. So with that in mid, let’s go through a little bit of setup in the next video.
  • #15: In this section, we are going to start to get some hands on experience with Redis.
  • #16: In this section, we are going to start to get some hands on experience with Redis.