Python 3.10 is now available in preview.


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.




View source

Returns True if this entry has expired; False otherwise.


View source

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


View source

Marks this entry as deleted and locks it for the expiration time.

Used to implement memcache's delete timeout behavior.

timeout Parameter originally passed to memcache.delete or memcache.delete_multi to control deletion timeout.