summaryrefslogtreecommitdiff
path: root/memcache.py
diff options
context:
space:
mode:
authorSean Reifschneider <jafo@tummy.com>2009-06-05 17:32:27 -0600
committerSean Reifschneider <jafo@tummy.com>2009-06-05 17:32:27 -0600
commitc8702b6808d48737fd6c55d455648bdd3fc845ef (patch)
tree125f4245c05b63ff8ad65c192302f054631585a2 /memcache.py
parentd4655f20718a409059c0a00584de8c08e81374f7 (diff)
downloadpython-memcached-c8702b6808d48737fd6c55d455648bdd3fc845ef.tar.gz
Fixing set example in docstring.
Diffstat (limited to 'memcache.py')
-rw-r--r--memcache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/memcache.py b/memcache.py
index c5fcb45..721a5dc 100644
--- a/memcache.py
+++ b/memcache.py
@@ -32,7 +32,7 @@ The standard way to use memcache with a database is like this::
obj = mc.get(key)
if not obj:
obj = backend_api.get(...)
- mc.set(obj)
+ mc.set(key, obj)
# we now have obj, and future passes through this code
# will use the object from the cache.