def ExpireObject ( self , key ) : node = self . _hash . pop ( key , None ) if node : self . _age . Unlink ( node ) self . KillObject ( node . data ) return node . data
python clear deleate an object
Expire a specific object from cache .
def ExpireObject(self, key):
    """Expire a specific object from cache."""
    node = self._hash.pop(key, None)
    if node:
      self._age.Unlink(node)
      self.KillObject(node.data)

      return node.data