google.appengine.api.memcache.memcache_stub.CacheEntry

An entry in the cache.

Inherits From: expected_type

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.

byte_size

Methods

CheckExpired

View source

Returns True if this entry has expired; False otherwise.

CheckLocked

View source

Returns True if this entry was deleted but has not yet timed out.

ExpireAndLock

View source

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.