Python Datastructures Backed by Redis
lethain.com
lethain.com
Store a dictionary:
import redis
r = redis.Redis()
r.hmset('key', dict(foo='bar', n=42))
Store a single value in a dictionary/hash: r.hset('key', 'foo', 'buz')However, doesn't this turn it into the mother-of-all global variables? (Actually, if it's outside of the globe, and outside of the system, can we call them galactic variables?) With in-memory lists, the scoping is relatively well defined. It seems like the temptation to take this too far would be great.