Redis

Setting up Redis Clustering

In this step I am going to tell you all the steps for Setting up Redis Clustering. You can read more about Redis at official website of Redis. Create Redis Configuration File with below directive for each node: Move each configuration file to it’s folder: Run redis-cli –cluster create command redis-cli –cluster create 127.0.0.1:7001 127.0.0.1:7002 …

Setting up Redis Clustering Read More »

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

In this article you are going to learn about Redis Transactions. It is useful when you either want to perform all the transactions or you want to rollback everything. This feature is almost present in all the databases. Below Commands are the basic building blocks of Redis Transactions. DISCARD EXEC MULTI UNWATCH WATCH What are …

Redis Transactions Read More »