Redis Presenter: Crystal.

Slides:



Advertisements
Similar presentations
open source, advanced key-value store, data structure server
Advertisements

A whirlwind tour Aran Elkington. Open-source Networked / Distributed In-memory  fast Essentially a Key-value data store Optional durability.
Computer-Based Testing Let’s Practice!. Everyone will use a laptop Once you have yours, turn it on and open a browser that is NOT Chrome.
K ALI ROHAN KOKA AZEEM HIRANI. A Simple database Implementing a Dictionary where keys are associated with values. For e.g.: It can set the key “surname_1987”
Overview on ZHT 1.  General terms  Overview to NoSQL dabases and key-value stores  Introduction to ZHT  CS554 projects 2.
Typical Caching Patterns Web Tier Data Storage SQL Data.
Python By Steve Wright. What is Python? Simple, powerful, GP scripting language Simple, powerful, GP scripting language Object oriented Object oriented.
1 Internal Table / DB Alternatives Analysis of Various Table Lookup Approaches.
Writing Tcl Scripts Outline Goal Reading Syntax Data Types
Selection Sort
NoSQL and NewSQL Justin DeBrabant CIS Advanced Systems - Fall 2013.
Memcached magic Ligaya Turmelle. What is memcached briefly? memcached is a high-performance, distributed memory object caching system, generic in nature.
Redis: NoSQL data storage
Securing Redis with Sedona Will Urbanski #lascon2013.
Etcetera! CMSC 491 Hadoop-Based Distributed Computing Spring 2015 Adam Shook.
Managing with Big Data “at rest” Alexander Semenov, PhD.
Memcached HTTPd mcd DB HTTPd mcd [memcached 설치 및 구동 ] -- memory object caching system *) 설정 없음 1. 설치 - memcached or /usr/ports/databases/memcached.
Real-time Web Application with Node.js CENTRE FOR NETWORK RESEARCH COMPUTER ENGINEERING, PRINCE OF SONGKLA UNIVERSITY 1 Aj. Suthon, Nong Gun, Nong Pop.
In a function every input has exactly one output. Function.
INFO 344 Web Tools And Development CK Wang University of Washington Spring 2014.
MySQL Vs PostgreSQL for a small scale E-Commerce Business By: Bhalchandra.
 70s - Database access is hard and depends on the app  80s – Relational databases come on the scene  90s – Object oriented programming and DBs  00s.
Redis And Python PyCon India, 2011 (Work in Progress) Sunil Arora.
Redis Key-Value Database: Practical Introduction
Session 7: Getting PHP to Talk to MySQL. Objectives Connecting to the Database Building & Executing the SQL SELECT Query Fetching & Displaying the data.
Chapter 5 MYSQL Database. Introduction to MYSQL MySQL is the world's most popular open-source database. Open source means that the source code, the programming.
Róbert Móro. redis In-memory key-value store Master-slave replication Persistence – RDB (snapshots) – AOF (append-only log file) Supported languages –
A Brief Documentation.  Provides basic information about connection, server, and client.
Game Store Database. To start off, the purpose of this particular database design is to regulate the basic inner workings of a game store. This design.
CSE 3330 Database Concepts MongoDB. Big Data Surge in “big data” Larger datasets frequently need to be stored in dbs Traditional relational db were not.
Lecture # 32.1 Lab 10: Server 1. Lab 10 Server 1 Add and delete names.
What is the value of the money shown? a)$1.38 b)$1.18 c)$1.48 d)$1.75.
Selection Sort
Managing with Big Data “at rest”
How to Build High Performance Apps Using Microsoft Azure Redis Cache
Modeling MongoDB with Relational Model Proposed by Christopher Polanco.
Database Management Systems
Skip Counting Practice
COSC 1306—COMPUTER SCIENCE AND PROGRAMMING PYTHON TUPLES, SETS AND DICTIONARIES Jehan-François Pâris
CS1100: Data, Databases, Queries Action Queries CS11001Advanced Queries.
Get more than a cache back! The Microsoft Azure (Redis) Cache Maarten
Software Engineering for Business Information Systems (sebis) Department of Informatics Technische Universität München, Germany wwwmatthes.in.tum.de Factors.
NOSQL Yan
Y.-H. Chen International College Ming-Chuan University Fall, 2004
Redis and Redis with .NET
Relational Databases: Basic Concepts
Databases.
HOL (Hands-on Lab) | Session ID: HOL10286
Redis:~ Author Anil Sharma Data Structure server.
open source, advanced key-value store, data structure server
CSE-291 Cloud Computing, Fall 2016 Kesden
records Database Vocabulary It can be useful to collect information.
Data Modeling and Database Design INF1343, Winter 2012 Yuri Takhteyev
Database Design and Implementation
Database Management Systems
Relational databases, and more …
SQL - כתיבת שאילתות למתחילים
Managing with Big Data “at rest” - Storage
A Small and Fast IP Forwarding Table Using Hashing
CS122B: Projects in Databases and Web Applications Winter 2019
Relational Databases: Basic Concepts
Relational Databases: Basic Concepts
CS122B: Projects in Databases and Web Applications Spring 2018
CS122B: Projects in Databases and Web Applications Winter 2018
CSE 231 Lab 8.
Database SQL.
CS122B: Projects in Databases and Web Applications Winter 2019
CS122B: Projects in Databases and Web Applications Winter 2018
COMPUTER SCIENCE PRESENTATION.
Python List.
Presentation transcript:

Redis Presenter: Crystal

What is Redis? Redis is an open source (BSD licensed), in-memory data structure store. It is a NoSQL database, which means it does not use SQL statements to get data.

Data Structures Strings Lists Hashes Sets Sorted sets

Strings set student:01 Crystal get student:01 mset student:02 Chelsea student:03 Nicole mget student:02 student:03 append student:01 “ Chen” set count 100 incr count decr count

Lists rpush aList one rpush aList two lpush aList zero lrange aList 0 -1 1) "zero" 2) "one" 3) "two“ rpush aList 3 4 5 “eight” linsert aList before “eight” “7” linsert aList after “5” “six” lindex aList 2 "two“ lpop aList rpop aList

Hashes hset student:100 name Crystal hget student:100 name hmset student:100 department CSIE degree Ph.D hmget student:100 name department degree 1) "Crystal" 2) "CSIE“ hgetall student:100 hkeys student:100 hvals student:100

Sets sadd aSet 1 2 5 6 7 sadd bSet 1 2 3 4 9 sadd cSet 1 2 5 8 0 smembers aSet sismember bSet 9 sdiff aSet bSet cSet 1) "6" 2) "7“ sunionstore dSet aSet bSet cSet smembers dSet sinter aSet bSet cSet 1) "1" 2) "2"

Sorted Sets zadd VoIP 95 Crystal zadd VoIP 97 Chelsea 91 Nicole 89 Ken 93 Jack 91 Mini zrange VoIP 0 -1 (withscores) zrevrange VoIP 0 -1 (withscores) zrank VoIP Crystal zrevrank VoIP Crystal zrem VoIP Crystal Jack

Keys move VoIP 1 keys * exists VoIP keys *Set expire VoIP 60 del aList ttl VoIP persist VoIP keys * keys *Set del aList rename student:01 student:07 select 1

Python + Redis import redis pool = redis.ConnectionPool(host=‘127.0.0.1', port=6379, db=1) r=redis.StrictRedis(connection_pool=pool) img=open("/home/crystal/Redis/NAT1.jpg","rb").read() r.set('photo',img)

Conclusion Redis is a easy-to-use database. The command lines in Redis are more brief and makes sense. Besides MySQL, Redis is another choice for database.