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 –cluster-replicas 1

Redis Sets Datatype and Commands

Redis SADD – Creating and Adding Members to Redis Sets. sadd users_ip sadd users_ip 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.> keys * 1) “ticket_available”> multi OK> get ticket_available QUEUED> decr ticket_available QUEUED> …

Redis Transactions Read More »

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 »