Redis Tutorial: Basic and advance

Redis tutorial affords fundamental and advanced concepts of Redis Database. Our Redis tutorial is designed for beginners and professionals both.

Redis is a No SQL database which works on the idea of key-value pair.

Our Redis Tutorial consists of all subjects of Redis such as what is redis, how to installation redis, redis commands, information types, keys, lists, strings, hashes, sets, sorted sets, transaction, scripting, connection, server, interview questions etc.

What is Redis

Redis is a NoSQL database which follows the principle of key-value store. The key-value store affords capability to store some records known as a value, internal a key. You can recieve this records later solely if you comprehend the actual key used to save it.

Redis is a flexible, open-source (BSD licensed), in-memory information structure store, used as database, cache, and message broker. Redis is a NoSQL database so it allows users to keep massive quantity of data without the limit of a Relational database.

Redis supports a range of types of statistics structures like strings, hashes, lists, sets, sorted sets, bitmaps, hyperloglogs and geospatial indexes with radius queries.

Redis Architecture

There are two important processes in Redis architecture:

Redis Client

Redis Server

These customer and server can be on same computer or two different computers.

Redis server is used to keep facts in reminiscence . It controls all kind of administration and types the foremost part of the architecture. You can create a Redis consumer or Redis console patron when you installation Redis software or you can use

Features of Redis

Following is the list of main features of Redis:

Speed: Redis stores the complete dataset in fundamental memory it really is why it is extraordinarily fast. It hundreds up to 110,000 SETs/second and 81,000 GETs/second can be retrieved in an entry level Linux box. Redis supports Pipelining of instructions and facilitates you to use multiple values in a single command to pace up conversation with the patron libraries.

Persistence: While all the data lives in memory, changes are asynchronously saved on disk using bendy insurance policies primarily based on elapsed time and/or variety of updates considering last save. Redis helps an append-only file persistence mode. Check extra on Persistence, or read the AppendOnlyFileHowto for extra information.

Data Structures: Redis supports various kinds of data structures such as strings, hashes, sets, lists, sorted units with range queries, bitmaps, hyperloglogs and geospatial indexes with radius queries.

Atomic Operations: Redis operations working on the one-of-a-kind Data Types are atomic, so it is protected to set or increase a key, add and do away with factors from a set, make bigger a counter etc.

Supported Languages: Redis supports a lot of languages such as ActionScript, C, C++, C#, Clojure, Common Lisp, D, Dart, Erlang, Go, Haskell, Haxe, Io, Java, JavaScript (Node.js), Julia, Lua, Objective-C, Perl, PHP, Pure Data, Python, R, Racket, Ruby, Rust, Scala, Smalltalk and Tcl.

Master/Slave Replication: Redis follows a very easy and quickly Master/Slave replication. It takes solely one line in the configuration file to set it up, and 21 seconds for a Slave to whole the preliminary sync of 10 MM key set on an Amazon EC2 instance.

Sharding: Redis supports sharding. It is very easy to distribute the dataset across multiple Redis instances, like other key-value store.

Portable: Redis is written in ANSI C and works in most POSIX systems like Linux, BSD, Mac OS X, Solaris, and so on. Redis is reported to compile and work underneath WIN32 if compiled with Cygwin, however there is no reputable support for Windows currently.

Redis Index

Redis Tutorial Redis Tutorial Redis vs RDBMS Redis vs Other Key-value Installation on Windows Installation on Ubuntu Redis Configuration Redis Data types Redis All Commands Redis Commands Redis Commands Redis Keys Redis Strings Redis Hashes Redis Lists Redis Sets Redis Sorted Sets Redis Transaction Redis Scripting Redis Connection Redis Server Redis Advance Redis Backup & Restore Redis Security Redis Benchmarks Redis Client Connection Redis Pipelining Redis Partitioning Redis Differences Redis vs Memcached Redis vs MongoDB Redis vs Elasticsearch Redis vs Aerospike Interview Questions Redis Interview Questions


Before getting to know Redis, you ought to have the simple know-how of SQL.


Our Redis Tutorial is designed to help beginners and professionals.


We guarantee that you will now not discover any hassle in this Redis tutorial. But if there is any mistake, please publish the trouble in contact form.

Next TopicRedis vs. RDBMS

Next →