From here:
eval "return #redis.pcall('keys', 'abc:*')" 0
It’s not O(1), but at least the count is done on the server side.
From here:
eval "return #redis.pcall('keys', 'abc:*')" 0
It’s not O(1), but at least the count is done on the server side.