We are using the redis cache and below the sample type of data we are storing
LLPUSH mylist "abc" "xyx" "awe" "wwqw"
Now I am want to search in the redis from Spring project. For example my Spring project class receives one element from some external client "abc". How can search the Redis list by value? Something like below:
ListOperations<String, Object> listOperations = redisTemplate.opsForList();
listOperations.get(key,"abc"); // returns abc
Or at least I want confirmation that this element is present in the list of Redis cache:
listOperations.contains(key, "abc"); // returns either true or false, based on the value presence
Can someone please suggest of this type of client lib is present for Redis from Java side and that we can use in the Spring boot project?