Skip to content

Commit

Permalink
adding python example
Browse files Browse the repository at this point in the history
  • Loading branch information
tnm committed Apr 11, 2010
1 parent d9ba39c commit 5664319
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
@@ -0,0 +1,12 @@
r = redis.Redis()

r.set("place:100:name", "Spain")
r.get("place:100:name")
# > "Spain"

id = r.incr("name_ids")
r.set("person: %s:name" %id, "Donald Knuth")
r.get("person: %s:name" %id)
# > "Donald Knuth"


0 comments on commit 5664319

Please sign in to comment.