App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | List of all members
google.appengine.api.memcache.memcache_stub.CacheEntry Class Reference
Inheritance diagram for google.appengine.api.memcache.memcache_stub.CacheEntry:

Public Member Functions

def __init__
 
def CheckExpired
 
def ExpireAndLock
 
def CheckLocked
 

Public Attributes

 value
 
 flags
 
 cas_id
 
 created_time
 
 will_expire
 
 locked
 
 expiration_time
 

Detailed Description

An entry in the cache.

Constructor & Destructor Documentation

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().

Member Function Documentation

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: