def __setitem__(self, name, value):
        """ Populates the cache with a given name and value. """
        key = self.key(name)
        
        entry = self._get_entry(key)
        
        entry._lock.acquire()
        try:
            self._pack(entry,value)
            self.commit()
        finally:
            entry._lock.release()
 Populates the cache with a given name and value. 
recipes/Python/302997_Threadsafe_caching_object_file_HTTP/recipe-302997.py