Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 9. The Memory Cache > The Python Memcache API

9.1. The Python Memcache API

The Python API to the memcache service is designed to be compatible with the Python interface to memcached. It includes a Client class with static methods you can call to interact with the service. The App Engine API also provides these methods as straight functions in the google.appengine.api.memcache package.

Keys are strings. The API also accepts a memcached-style tuple of a hash code and a string as a key for compatibility, but it ignores the hash code. The string can be any size; strings larger than 250 bytes are hashed to 250 bytes.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial