Redis

Setting up Redis Clustering

Create Redis Configuration File with below directive for each node: port 7000 cluster-enabled yes cluster-config-file nodes.conf cluster-node-timeout 5000 appendonly yes Move each configuration file to it’s folder: mkdir 700{1..6} Run redis-cli –cluster create command redis-cli –cluster create 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005 127.0.0.1:7006 –cluster-replicas 1

Redis Sets Datatype and Commands

Redis SADD – Creating and Adding Members to Redis Sets. sadd users_ip 10.0.0.1 sadd users_ip 10.0.0.2 10.0.0.3 192.168.0 Redis SCARD – Checking total numbers of members available in a list also known as checking cardinality. scard users_ip Redis SMEMBERS – Checking Total Numbers of Members in a set: smembers users_ip Redis SDIFF – Checking Members …

Redis Sets Datatype and Commands Read More »

Redis Transactions

Below Commands are the basic building blocks of Transactions. DISCARD EXEC MULTI UNWATCH WATCH What are the key properties of Transactions? Transactions guarantee that they are executed in sequence. Either all commands are processed or none are processed. 127.0.0.1:6379> keys * 1) “ticket_available” 127.0.0.1:6379> multi OK 127.0.0.1:6379> get ticket_available QUEUED 127.0.0.1:6379> decr ticket_available QUEUED 127.0.0.1:6379> …

Redis Transactions Read More »

Installing Redis on Windows

Officially, Redis is not supported on Windows.  You can download Redis 3.2 from here Installation of Rediw on a Windows Operating System is pretty straight forward: Download the software Extract the downloaded Software Double click on redis-server to start redis

Installing Redis on Linux Using a Package Manager

Before we begin, It is worth mentioning that this will only work if you’ve internet running on your Unix/Linux Server. Read this blog to know how to install Redis in offline mode. Redis package is not included in the default CentOS repositories. So we need to start by configuring REMI Repository. Run below commands to …

Installing Redis on Linux Using a Package Manager Read More »

Redis – Beginners to Advance – Deep Dive

Getting Started With Redis Redis is currently World’s fastest and most Loved Database. Redis has more than 1 Billion downloads on Docker. It is the first database to reach this milestone. Redis is an Open Source (BSD Licensed) Database. Redis is an In-Memory Database Redis Supports various data structures such as strings, hashes, lists, sets, …

Redis – Beginners to Advance – Deep Dive Read More »

You have successfully subscribed to the newsletter

There was an error while trying to send your request. Please try again.

IT Panther will use the information you provide on this form to be in touch with you and to provide updates and marketing.