jdeppe-pivotal commented on a change in pull request #7408:
URL: https://github.com/apache/geode/pull/7408#discussion_r824370655



##########
File path: 
geode-for-redis/src/main/java/org/apache/geode/redis/internal/data/RedisList.java
##########
@@ -154,6 +159,29 @@ public long lpush(List<byte[]> elementsToAdd, 
Region<RedisKey, RedisData> region
     return popped;
   }
 
+  public static List<byte[]> blpop(ExecutionHandlerContext context, 
List<RedisKey> keys,
+      int timeout) {
+    Region<RedisKey, RedisData> region = context.getRegion();
+    for (RedisKey key : keys) {
+      if (region.containsKey(key)) {

Review comment:
       Fixed. I just used `getTypedRedisData` and called `isNull()` on the 
value.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@geode.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to