|
| value |
|
| flags |
|
| cas_id |
|
| created_time |
|
| will_expire |
|
| locked |
|
| expiration_time |
|
def google.appengine.api.memcache.memcache_stub.CacheEntry.__init__ |
( |
|
self, |
|
|
|
value, |
|
|
|
expiration, |
|
|
|
flags, |
|
|
|
cas_id, |
|
|
|
gettime |
|
) |
| |
Initializer.
Args:
value: String containing the data for this entry.
expiration: Number containing the expiration time or offset in seconds
for this entry.
flags: Opaque flags used by the memcache implementation.
cas_id: Unique Compare-And-Set ID.
gettime: Used for testing. Function that works like time.time().
def google.appengine.api.memcache.memcache_stub.CacheEntry.CheckExpired |
( |
|
self | ) |
|
Returns True if this entry has expired; False otherwise.
def google.appengine.api.memcache.memcache_stub.CacheEntry.CheckLocked |
( |
|
self | ) |
|
Returns True if this entry was deleted but has not yet timed out.
def google.appengine.api.memcache.memcache_stub.CacheEntry.ExpireAndLock |
( |
|
self, |
|
|
|
timeout |
|
) |
| |
Marks this entry as deleted and locks it for the expiration time.
Used to implement memcache's delete timeout behavior.
Args:
timeout: Parameter originally passed to memcache.delete or
memcache.delete_multi to control deletion timeout.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/api/memcache/memcache_stub.py