admin

Redis List

Redis List is the list of strings, sorted by insertion order. We can add elements from start or end of the list. O(1) -> is the complexity to add elements from start or end of the list. The max length of a list is 2^32 - 1 elements (4294967295, more than 4 billion of elements …

Redis List Read More »

Fun With Java Optional

Optional: A container object which may or may not contain a non-null value. Below are good points about Optional:1. This container helps us to reduce the NullPointerException.2. This helps us to indicate that the return type of a method could legitimately be null. Optional Creation: An Optional instance is final and immutable. However, the reference …

Fun With Java Optional Read More »