SlideShare a Scribd company logo
1 of 14
REDIS – Letem světem

      Robert Havelka
What?

 „key-value” or „key-datastructure” storage
 string, hash, list, set a sorted set
 master - slave
 transactions
What REDIS means?

 It means REmote DIctionary Server
 It is a joke on the word Redistribute (instead to
 use just a Relational DB redistribute your
 workload among Redis servers)
String

 binary safe (JPEG, serialized objects)
 max 512M
 atomic counters
   INCR, DECR (64bit signed int)
 random access vector
   GETRANGE, SETRANGE


 http://redis.io/commands/#string
List

 list of Strings
 ordered
 max length of a List is 232-1
 B(L|R)POP




 http://redis.io/commands#list
Set

 set of Strings
 max members in a Set is 232-1
 extract elements at random
      SPOP, SRANDMEMBER




 http://redis.io/commands#set
Hash

 map between String fields and String values
 Hash can store up to 232-1 field-value pairs




 http://redis.io/commands#hash
Sorted set

 set of Strings
 members with score
 „most advanced Redis data types“




 http://redis.io/commands#sorted_set
Transaction

 WATCH – check and set
 UNWATCH
 MULTI – start transaction block
 EXEC – commit transaction, unWATCH all
 DISCARD – rollback
Expiration

 EXPIRE (s)
 EXPIREAT (timestamp)
 PERSIST(cancel)
Persistence

 RDB
   memory snapshot
   key changes


 AOF
   fast (~1s)
   redis-check-aof + diff
Replication

 master – multiple slaves
   slave – slave
   graph-like structure



 cluster
Clients

 C – hiredis
 Java – Jedis
 LUA – redis-lua
 Perl – Redis
 PHP – Predis
 Python – redis-py
 Ruby – redis-rb
Sources

 http://redis.io
 Interactive tutorial - http://try.redis-db.com

More Related Content

What's hot

Redis Introduction
Redis IntroductionRedis Introduction
Redis Introduction
Alex Su
 
Basic command ppt
Basic command pptBasic command ppt
Basic command ppt
Rohit Kumar
 

What's hot (20)

Redis 101 Data Structure
Redis 101 Data StructureRedis 101 Data Structure
Redis 101 Data Structure
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Unix commands in etl testing
Unix commands in etl testingUnix commands in etl testing
Unix commands in etl testing
 
Red Hat Linux cheat sheet
Red Hat Linux cheat sheetRed Hat Linux cheat sheet
Red Hat Linux cheat sheet
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic Commands
 
NoSQL Couchbase Lite & BigData HPCC Systems
NoSQL Couchbase Lite & BigData HPCC SystemsNoSQL Couchbase Lite & BigData HPCC Systems
NoSQL Couchbase Lite & BigData HPCC Systems
 
Redis Introduction
Redis IntroductionRedis Introduction
Redis Introduction
 
DNS resolution
DNS resolutionDNS resolution
DNS resolution
 
Linux Commands - Cheat Sheet
Linux Commands - Cheat Sheet Linux Commands - Cheat Sheet
Linux Commands - Cheat Sheet
 
Basic linux commands for bioinformatics
Basic linux commands for bioinformaticsBasic linux commands for bioinformatics
Basic linux commands for bioinformatics
 
Basic
BasicBasic
Basic
 
Basic command ppt
Basic command pptBasic command ppt
Basic command ppt
 
Basic linux day 3
Basic linux day 3Basic linux day 3
Basic linux day 3
 
Linux basic commands with examples
Linux basic commands with examplesLinux basic commands with examples
Linux basic commands with examples
 
What is a domain name system(dns)?
What is a domain name system(dns)?What is a domain name system(dns)?
What is a domain name system(dns)?
 
DNS – Domain Name Service
DNS – Domain Name ServiceDNS – Domain Name Service
DNS – Domain Name Service
 
Introduction to redis
Introduction to redisIntroduction to redis
Introduction to redis
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Basic Linux day 2
Basic Linux day 2Basic Linux day 2
Basic Linux day 2
 

Viewers also liked

המדריך השלם לרכישת נעלי כלה
המדריך השלם לרכישת נעלי כלההמדריך השלם לרכישת נעלי כלה
המדריך השלם לרכישת נעלי כלה
shim0207
 
מצגת 1 קורס סטיילינג
מצגת 1 קורס סטיילינגמצגת 1 קורס סטיילינג
מצגת 1 קורס סטיילינג
stylingwizo
 
Another Introduce to Redis
Another Introduce to RedisAnother Introduce to Redis
Another Introduce to Redis
jiaqing zheng
 
ימי הערכות תשעג יהודה פרנקל
ימי הערכות תשעג   יהודה פרנקלימי הערכות תשעג   יהודה פרנקל
ימי הערכות תשעג יהודה פרנקל
נטע לב
 
סטנדרטים מחודשים במידענות
סטנדרטים מחודשים במידענותסטנדרטים מחודשים במידענות
סטנדרטים מחודשים במידענות
ronit2107
 

Viewers also liked (20)

המדריך השלם לרכישת נעלי כלה
המדריך השלם לרכישת נעלי כלההמדריך השלם לרכישת נעלי כלה
המדריך השלם לרכישת נעלי כלה
 
העלייה על הקרקע
העלייה על הקרקעהעלייה על הקרקע
העלייה על הקרקע
 
Archivo10
Archivo10Archivo10
Archivo10
 
מצגת 1 קורס סטיילינג
מצגת 1 קורס סטיילינגמצגת 1 קורס סטיילינג
מצגת 1 קורס סטיילינג
 
Bibliotecas De Lujo En Europa
Bibliotecas De Lujo En EuropaBibliotecas De Lujo En Europa
Bibliotecas De Lujo En Europa
 
מצגת ועדת חברים
מצגת ועדת חבריםמצגת ועדת חברים
מצגת ועדת חברים
 
Another Introduce to Redis
Another Introduce to RedisAnother Introduce to Redis
Another Introduce to Redis
 
Actividad 13
Actividad 13Actividad 13
Actividad 13
 
Angulos
AngulosAngulos
Angulos
 
2011 love yall
2011 love yall2011 love yall
2011 love yall
 
The Best Members Use Shared Branching
The Best Members Use Shared BranchingThe Best Members Use Shared Branching
The Best Members Use Shared Branching
 
Cristina y sus amigos
Cristina y sus amigosCristina y sus amigos
Cristina y sus amigos
 
ימי הערכות תשעג יהודה פרנקל
ימי הערכות תשעג   יהודה פרנקלימי הערכות תשעג   יהודה פרנקל
ימי הערכות תשעג יהודה פרנקל
 
First civilizations
First civilizationsFirst civilizations
First civilizations
 
מהלכים מרכזים בשנת הלימודית תשע"ב
מהלכים מרכזים בשנת הלימודית תשע"במהלכים מרכזים בשנת הלימודית תשע"ב
מהלכים מרכזים בשנת הלימודית תשע"ב
 
Sistemas
SistemasSistemas
Sistemas
 
אנשי קשר נטעים
אנשי קשר נטעיםאנשי קשר נטעים
אנשי קשר נטעים
 
Sistemas1
Sistemas1Sistemas1
Sistemas1
 
פלייר יום צופה 2012
פלייר יום צופה 2012פלייר יום צופה 2012
פלייר יום צופה 2012
 
סטנדרטים מחודשים במידענות
סטנדרטים מחודשים במידענותסטנדרטים מחודשים במידענות
סטנדרטים מחודשים במידענות
 

Similar to Robert Havelka: REDIS – Letem světem

quickguide-einnovator-9-redis
quickguide-einnovator-9-redisquickguide-einnovator-9-redis
quickguide-einnovator-9-redis
jorgesimao71
 
Scaling Redis To 1M Ops/Sec: Jane Paek
Scaling Redis To 1M Ops/Sec: Jane PaekScaling Redis To 1M Ops/Sec: Jane Paek
Scaling Redis To 1M Ops/Sec: Jane Paek
Redis Labs
 

Similar to Robert Havelka: REDIS – Letem světem (20)

Chicago Data Summit: Apache HBase: An Introduction
Chicago Data Summit: Apache HBase: An IntroductionChicago Data Summit: Apache HBase: An Introduction
Chicago Data Summit: Apache HBase: An Introduction
 
Redis introduction
Redis introductionRedis introduction
Redis introduction
 
Introduction to Redis
Introduction to RedisIntroduction to Redis
Introduction to Redis
 
Redis
RedisRedis
Redis
 
Fun with Ruby and Redis
Fun with Ruby and RedisFun with Ruby and Redis
Fun with Ruby and Redis
 
quickguide-einnovator-9-redis
quickguide-einnovator-9-redisquickguide-einnovator-9-redis
quickguide-einnovator-9-redis
 
Redis Installation Configuration And Implementation
Redis Installation Configuration And ImplementationRedis Installation Configuration And Implementation
Redis Installation Configuration And Implementation
 
Redis is not just a cache, Andrew Lavers, ConFoo Montreal 2020
Redis is not just a cache, Andrew Lavers, ConFoo Montreal 2020Redis is not just a cache, Andrew Lavers, ConFoo Montreal 2020
Redis is not just a cache, Andrew Lavers, ConFoo Montreal 2020
 
Map-Reduce and Apache Hadoop
Map-Reduce and Apache HadoopMap-Reduce and Apache Hadoop
Map-Reduce and Apache Hadoop
 
Etu L2 Training - Hadoop 企業應用實作
Etu L2 Training - Hadoop 企業應用實作Etu L2 Training - Hadoop 企業應用實作
Etu L2 Training - Hadoop 企業應用實作
 
Scaling Redis To 1M Ops/Sec: Jane Paek
Scaling Redis To 1M Ops/Sec: Jane PaekScaling Redis To 1M Ops/Sec: Jane Paek
Scaling Redis To 1M Ops/Sec: Jane Paek
 
Domain Name Server
Domain Name ServerDomain Name Server
Domain Name Server
 
Python redis talk
Python redis talkPython redis talk
Python redis talk
 
Redis Use Patterns (DevconTLV June 2014)
Redis Use Patterns (DevconTLV June 2014)Redis Use Patterns (DevconTLV June 2014)
Redis Use Patterns (DevconTLV June 2014)
 
Redis
RedisRedis
Redis
 
Nextag talk
Nextag talkNextag talk
Nextag talk
 
Domain Name System DNS
Domain Name System DNSDomain Name System DNS
Domain Name System DNS
 
You know, for search. Querying 24 Billion Documents in 900ms
You know, for search. Querying 24 Billion Documents in 900msYou know, for search. Querying 24 Billion Documents in 900ms
You know, for search. Querying 24 Billion Documents in 900ms
 
Hadoop and big data training
Hadoop and big data trainingHadoop and big data training
Hadoop and big data training
 
Hands on Hadoop and pig
Hands on Hadoop and pigHands on Hadoop and pig
Hands on Hadoop and pig
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Recently uploaded (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 

Robert Havelka: REDIS – Letem světem

  • 1. REDIS – Letem světem Robert Havelka
  • 2. What? „key-value” or „key-datastructure” storage string, hash, list, set a sorted set master - slave transactions
  • 3. What REDIS means? It means REmote DIctionary Server It is a joke on the word Redistribute (instead to use just a Relational DB redistribute your workload among Redis servers)
  • 4. String binary safe (JPEG, serialized objects) max 512M atomic counters INCR, DECR (64bit signed int) random access vector GETRANGE, SETRANGE http://redis.io/commands/#string
  • 5. List list of Strings ordered max length of a List is 232-1 B(L|R)POP http://redis.io/commands#list
  • 6. Set set of Strings max members in a Set is 232-1 extract elements at random SPOP, SRANDMEMBER http://redis.io/commands#set
  • 7. Hash map between String fields and String values Hash can store up to 232-1 field-value pairs http://redis.io/commands#hash
  • 8. Sorted set set of Strings members with score „most advanced Redis data types“ http://redis.io/commands#sorted_set
  • 9. Transaction WATCH – check and set UNWATCH MULTI – start transaction block EXEC – commit transaction, unWATCH all DISCARD – rollback
  • 10. Expiration EXPIRE (s) EXPIREAT (timestamp) PERSIST(cancel)
  • 11. Persistence RDB memory snapshot key changes AOF fast (~1s) redis-check-aof + diff
  • 12. Replication master – multiple slaves slave – slave graph-like structure cluster
  • 13. Clients C – hiredis Java – Jedis LUA – redis-lua Perl – Redis PHP – Predis Python – redis-py Ruby – redis-rb
  • 14. Sources http://redis.io Interactive tutorial - http://try.redis-db.com