From c8702b6808d48737fd6c55d455648bdd3fc845ef Mon Sep 17 00:00:00 2001 From: Sean Reifschneider Date: Fri, 5 Jun 2009 17:32:27 -0600 Subject: Fixing set example in docstring. --- memcache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'memcache.py') 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. -- cgit v1.2.1