예제 #1
0
        def izscan(self, key, *, match=None, count=None):
            """Incrementally iterate sorted set items using async for.

            Usage example:

            >>> async for val, score in redis.izscan(key, match='something*'):
            ...     print('Matched:', val, ':', score)

            """
            return _ScanIterPairs(
                lambda cur: self.zscan(key, cur, match=match, count=count))
예제 #2
0
        def izscan(self, key, *, match=None, count=None):
            """Incrementally iterate sorted set items using async for.

            Usage example:

            >>> async for val, score in redis.izscan(key, match='something*'):
            ...     print('Matched:', val, ':', score)

            """
            return _ScanIterPairs(lambda cur: self.zscan(key, cur,
                                                         match=match,
                                                         count=count))