Redis ZLEXCOUNT – How to get number of elements in sorted set by value range

1 week ago Lalit Bhagtani 0
In this tutorial, we will learn about how to get the number of elements of the sorted set value having values between a specific range. For this, we will use Redis ZLEXCOUNT command. ZLEXCOUNT Command This command returns the number of elements of the sorted set value, whose values (string representation of element) are between min Read More

Redis ZREMRANGEBYLEX – How to remove elements of sorted set by value range

1 week ago Lalit Bhagtani 0
In this tutorial, we will learn about how to remove elements of the sorted set value having values between a specific range. For this, we will use Redis ZREMRANGEBYLEX command. ZREMRANGEBYLEX Command This command removes all the elements of the sorted set value, whose values (string representation of element) are between min and max arguments. Here all Read More

Redis ZREVRANGEBYLEX – How to get elements of sorted set by desc value range

1 week ago Lalit Bhagtani 0
In this tutorial, we will learn about how to get all the elements of the sorted set value having values between a specific range and in descending lexicographical order. For this, we will use Redis ZREVRANGEBYLEX command. ZREVRANGEBYLEX Command This command returns all the elements of the sorted set value stored at a specified key, with Read More

Redis ZRANGEBYLEX – How to get elements of sorted set by asc value range

1 week ago Lalit Bhagtani 0
In this tutorial, we will learn about how to get all the elements of the sorted set value having values between a specific range and in ascending lexicographical order. For this, we will use Redis ZRANGEBYLEX command. ZRANGEBYLEX Command This command returns all the elements of the sorted set value stored at a specified key, with Read More

Redis ZREMRANGEBYRANK – How to remove elements of sorted set by rank range

1 week ago Lalit Bhagtani 0
In this tutorial, we will learn about how to remove elements of the sorted set value having rank between a specific range. For this, we will use Redis ZREMRANGEBYRANK command. ZREMRANGEBYRANK Command This command remove all the elements of the sorted set value, whose ranks are between start and stop arguments. The start and stop are zero Read More

Redis ZREMRANGEBYSCORE – How to remove elements of sorted set by score range

1 week ago Lalit Bhagtani 0
In this tutorial, we will learn about how to remove elements of the sorted set value having score between a specific range. For this, we will use Redis ZREMRANGEBYSCORE command. ZREMRANGEBYSCORE Command This command remove all the elements of the sorted set value, whose score is greater than equal to min ( inclusive ) score and less Read More

Redis ZCOUNT – How to get No. of elements of sorted set by score range

2 weeks ago Lalit Bhagtani 0
In this tutorial, we will learn about how to get the number of elements of the sorted set value having score between a specific range. For this, we will use Redis ZCOUNT command. ZCOUNT Command This command returns the number of elements of the sorted set value, whose score is greater than equal to min ( inclusive Read More

How to upload an object to S3 bucket using Java – AWS S3 PutObject

2 weeks ago Lalit Bhagtani 0
AWS S3 PutObject – In this tutorial, we will learn about how to upload an object to Amazon S3 bucket using java language. Project Setup Create a simple maven project in your favorite IDE and add below mentioned dependency in your pom.xml file. <dependency> <groupId>com.amazonaws</groupId> <artifactId>aws-java-sdk-s3</artifactId> <version>1.11.533</version> </dependency> For latest version of aws library, check Read More