(self, key, value)
Set the cached value for the given key.
Set the cached value for the given key.
Set the cached value for the given key .
def __setitem__(self, key, value):
        """Set the cached value for the given key."""
        existing = self.get(key)
        dict.__setitem__(self, key, value)
        if isinstance(existing, threading.Event):
            # Set Event.result so other threads waiting on it have
            # immediate access without needing to poll the cache again.
            existing.result = value
            existing.set()
def __setitem__ ( self , key , value ) : existing = self . get ( key ) dict . __setitem__ ( self , key , value ) if isinstance ( existing , threading . Event ) : # Set Event.result so other threads waiting on it have # immediate access without needing to poll the cache again. existing . result = value existing . set ( )