View source on GitHub
|
Memcache API.
Provides memcached-alike API to application developers to store data in memory when reliable storage via the DataStore API isn't required and higher performance is desired.
Modules
memcache_stub module: Stub version of the memcache API, keeping all data in process memory.
Classes
class Client: Memcache client object, through which one invokes all memcache operations.
class ItemWithTimestamps: A Memcache item with its relevant timestamps.
Functions
add(...): Sets a key's value if the item is not already in memcache.
add_multi(...): Set multiple keys' values if items are not already in memcache.
create_rpc(...): Creates an RPC object for use with the memcache API.
debuglog(...): Logging function for debugging information.
decr(...): Atomically decrements a key's value.
delete(...): Deletes a key from memcache.
delete_multi(...): Delete multiple keys at once.
disconnect_all(...): Closes all connections to memcache servers.
flush_all(...): Deletes everything in memcache.
forget_dead_hosts(...): Resets all servers to the alive status.
get(...): Looks up a single key in memcache.
get_multi(...): Looks up multiple keys from memcache in one operation.
get_stats(...): Gets memcache statistics for this application.
incr(...): Atomically increments a key's value.
offset_multi(...): Offsets multiple keys by a delta, incrementing and decrementing in batch.
peek(...): Gets an item from memcache along with its timestamp metadata.
peek_multi(...): Gets multiple items from memcache along with their timestamp metadata.
replace(...): Replaces a key's value, failing if item isn't already in memcache.
replace_multi(...): Replace multiple keys' values, failing if the items aren't in memcache.
set(...): Sets a key's value, regardless of previous contents in cache.
set_multi(...): Set multiple keys' values at once, regardless of previous contents.
set_servers(...): Sets the pool of memcache servers used by the client.
setup_client(...): Sets the Client object instance to use for all module-level methods.
Other Members |
|---|
google.appengine.api.capabilities.CapabilitySet
1
0
2
3
4
8
7
250
1000000
2
'bytes'
'byte_hits'
'hits'
'items'
'misses'
'oldest_item_age'
1
5
3
4
2
0
1
View source on GitHub