'redis scanIterator configuration

I am using the latest redis npm package and I'm trying to iterate through all the keys using the scanIterator(). Is it possible to configure the iterator to MATCH an expression. Im using this configuration but it is still returning all the keys that don't match the expression.

 redisClient.scanIterator({
  TYPE: "string",
  MATCH: "key.*.dev",
  COUNT: 1
});


Solution 1:[1]

I fixed this by removing the TYPE parameter, MATCH and COUNT were enough to yield the filtered response

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Arlind