I've been using the redis-cli to get the hang of how redis works. I understand that using this tool I can do this:
127.0.0.1:6379> set post:1:title "Redis is cool!"
OK
127.0.0.1:6379> set post:1:author "haye321"
OK
127.0.0.1:6379> get post:1:title
"Redis is cool!"
What I cannot seem to figure out is how I would accomplish this with redis-py. It doesn't seem the set commanded provided allows for an object-type or id. Thanks for your help.