Python3 client for Redis

在Linux上安装redis-py步骤

  1. 启动redis-server
  2. sudo pip2 install redis, redis-py安装到目录/usr/local/lib/python3.4/dist-packages
  3. 测试安装是否正确:
    1. import redis
    2. r = redis.StrictRedis(host='localhost', port=6379, db=0)
    3. r.set('foo', 'bar')
    4. r.get('foo')

References

  1. redis-py

results matching ""

    No results matching ""