#!/usr/bin/env python
# -*- coding: utf-8 -*-

from redis_learn import utils


def test_zadd():
    db = utils.get_redis()
    db.zadd('location', 'a', 1)
    db.zadd('location', 'b', 5)
    db.zadd('location', 'c', 3)
    db.zadd('location', 'd', 4)
    print(db.zrangebyscore('location', '0', '5'))
    print(db.zrangebyscore('location', 1, 4))


if __name__ == '__main__':
    test_zadd()
    pass

528524e1a7cca029f8c61aeb65a31dfe551b250d
<mask token>

<mask token>


def test_zadd():
    db = utils.get_redis()
    db.zadd('location', 'a', 1)
    db.zadd('location', 'b', 5)
    db.zadd('location', 'c', 3)
    db.zadd('location', 'd', 4)
    print(db.zrangebyscore('location', '0', '5'))
    print(db.zrangebyscore('location', 1, 4))


<mask token>

<mask token>


def test_zadd():
    db = utils.get_redis()
    db.zadd('location', 'a', 1)
    db.zadd('location', 'b', 5)
    db.zadd('location', 'c', 3)
    db.zadd('location', 'd', 4)
    print(db.zrangebyscore('location', '0', '5'))
    print(db.zrangebyscore('location', 1, 4))


if __name__ == '__main__':
    test_zadd()
    pass

from redis_learn import utils


def test_zadd():
    db = utils.get_redis()
    db.zadd('location', 'a', 1)
    db.zadd('location', 'b', 5)
    db.zadd('location', 'c', 3)
    db.zadd('location', 'd', 4)
    print(db.zrangebyscore('location', '0', '5'))
    print(db.zrangebyscore('location', 1, 4))


if __name__ == '__main__':
    test_zadd()
    pass

#!/usr/bin/env python
# -*- coding: utf-8 -*-

from redis_learn import utils


def test_zadd():
    db = utils.get_redis()
    db.zadd('location', 'a', 1)
    db.zadd('location', 'b', 5)
    db.zadd('location', 'c', 3)
    db.zadd('location', 'd', 4)
    print(db.zrangebyscore('location', '0', '5'))
    print(db.zrangebyscore('location', 1, 4))


if __name__ == '__main__':
    test_zadd()
    pass
