コード例 #1
0
    def iscan(self, *, match=None, count=None):
        """Incrementally iterate the keys space using async for.

        Usage example:

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

        """
        return _ScanIter(lambda cur: self.scan(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 _ScanIter(lambda cur: self.zscan(key, cur, match=match, count=count))
コード例 #3
0
ファイル: set.py プロジェクト: prdx23/aioredis
    def isscan(self, key, *, match=None, count=None):
        """Incrementally iterate set elements using async for.

        Usage example:

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

        """
        return _ScanIter(lambda cur: self.sscan(key, cur, match=match, count=count))
コード例 #4
0
ファイル: set.py プロジェクト: jettify/aioredis
        def isscan(self, key, *, match=None, count=None):
            """Incrementally iterate set elements using async for.

            Usage example:

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

            """
            return _ScanIter(lambda cur: self.sscan(key, cur, match=match, count=count))
コード例 #5
0
ファイル: generic.py プロジェクト: ramjet-labs/aioredis
    def iscan(self, *, match=None, count=None):
        """Incrementally iterate the keys space using async for.

        Usage example:

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

        """
        return _ScanIter(lambda cur: self.scan(cur,
                                               match=match, count=count))
コード例 #6
0
ファイル: sorted_set.py プロジェクト: aio-libs/aioredis
    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 _ScanIter(lambda cur: self.zscan(key, cur,
                                                match=match,
                                                count=count))