View source on GitHub |
An entry in the cache.
Inherits From: expected_type
google.appengine.api.memcache.memcache_stub.CacheEntry(
value, expiration, flags, cas_id, gettime, namespace, key
)
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() .
|
namespace
|
String namespace that this entry is stored under. |
key
|
String key used to retrieve the item from the namespace. |
Attributes | |
---|---|
byte_size
|
Methods
CheckExpired
CheckExpired()
Returns True
if this entry has expired; False
otherwise.
CheckLocked
CheckLocked()
Returns True
if this entry was deleted but has not yet timed out.
ExpireAndLock
ExpireAndLock(
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. |