Redis incrby
import redis
r = redis.StrictRedis()
r.set("counter", 19)
print(r.get("counter"))
print(r.incrby("counter", 23))
print(r.get("counter"))
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
import redis
r = redis.StrictRedis()
r.set("counter", 19)
print(r.get("counter"))
print(r.incrby("counter", 23))
print(r.get("counter"))