-
Notifications
You must be signed in to change notification settings - Fork 0
redis
Luke Chen edited this page Dec 29, 2020
·
10 revisions
(download redis-6.0.9.tar.gz)
make
make test
Pre-requisition:
sudo apt-get install tcl
Alternatively
$ sudo add-apt-repository ppa:redislabs/redis
$ sudo apt-get update
$ sudo apt-get install redis
$ pwd
~/redis-6.0.9/src
$ ./redis-server
$ pwd
~/redis-6.0.9/src
$ ./redis-cli
https://redislabs.com/lp/python-redis/
import redis
r = redis.Redis(
host='localhost',
port=6379)
r.set('name', 'lchen')
name = r.get('name')
print(name)