You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2020/09/24 06:00:03 UTC

[GitHub] [openwhisk-apigateway] yangxiuchengv5 opened a new issue #384: The method _M.getSubscriptions in redis.lua does not support RedisCluster???

yangxiuchengv5 opened a new issue #384:
URL: https://github.com/apache/openwhisk-apigateway/issues/384


   function _M.getSubscriptions(red, artifactId, tenantId, snapshotId)
     local res = red:scan(0, "match", utils.concatStrings({"subscriptions:tenant:", tenantId, ":api:", artifactId, ":*"}))
     local cursor = res[1]
     local subscriptions = {}
     for _, v in pairs(res[2])   **do**
       local matched = {string.match(v, "subscriptions:tenant:([^:]+):api:([^:]+):([^:]+):([^:]+):*")}
       subscriptions[#subscriptions + 1] = matched[4]
     end
     while cursor ~= "0" do
       res = red:scan(cursor, "match", utils.concatStrings({"subscriptions:tenant:", tenantId, ":api:", artifactId, ":*"}))
       cursor = res[1]
       for _, v in pairs(res[2]) do
         local matched = {string.match(v, "subscriptions:tenant:([^:]+):api:([^:]+):([^:]+):([^:]+):*")}
         subscriptions[#subscriptions + 1] = matched[4]
       end
     end
     return subscriptions
   end


----------------------------------------------------------------
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.

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



[GitHub] [openwhisk-apigateway] yangxiuchengv5 commented on issue #384: The method _M.getSubscriptions in redis.lua does not support RedisCluster???

Posted by GitBox <gi...@apache.org>.
yangxiuchengv5 commented on issue #384:
URL: https://github.com/apache/openwhisk-apigateway/issues/384#issuecomment-698131853


   The REDIS cluster does not support the SCAN directive


----------------------------------------------------------------
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.

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



[GitHub] [openwhisk-apigateway] yangxiuchengv5 commented on issue #384: The method _M.getSubscriptions in redis.lua does not support RedisCluster???

Posted by GitBox <gi...@apache.org>.
yangxiuchengv5 commented on issue #384:
URL: https://github.com/apache/openwhisk-apigateway/issues/384#issuecomment-698131853


   The REDIS cluster does not support the SCAN directive


----------------------------------------------------------------
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.

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