diff options
| author | Sean Reifschneider <jafo@tummy.com> | 2009-06-05 17:32:27 -0600 |
|---|---|---|
| committer | Sean Reifschneider <jafo@tummy.com> | 2009-06-05 17:32:27 -0600 |
| commit | c8702b6808d48737fd6c55d455648bdd3fc845ef (patch) | |
| tree | 125f4245c05b63ff8ad65c192302f054631585a2 | |
| parent | d4655f20718a409059c0a00584de8c08e81374f7 (diff) | |
| download | python-memcached-c8702b6808d48737fd6c55d455648bdd3fc845ef.tar.gz | |
Fixing set example in docstring.
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | memcache.py | 2 | ||||
| -rw-r--r-- | memcache.pyc | bin | 37528 -> 36875 bytes |
3 files changed, 4 insertions, 1 deletions
@@ -1,3 +1,6 @@ + * Fix in the docstring for how to use the "set" method. Found and fixed + by William McVey + Thu, 02 Apr 2009 13:37:49 -0600 Sean Reifschneider <jafo@tummy.com> * Version 1.44 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. diff --git a/memcache.pyc b/memcache.pyc Binary files differindex fac6f6b..5efe20c 100644 --- a/memcache.pyc +++ b/memcache.pyc |
