コード例 #1
0
ファイル: storage_cache.py プロジェクト: lungj/relstorage
 def __init__(self):
     # start with a fresh in-memory buffer instead of reusing one that might
     # already be spooled to disk.
     # TODO: An alternate idea would be a temporary sqlite database.
     self._queue = AutoTemporaryFile()
     # {oid: (startpos, endpos, prev_tid_int)}
     self._queue_contents = OID_OBJECT_MAP_TYPE()
コード例 #2
0
 def tpc_begin(self):
     """Prepare temp space for objects to cache."""
     self.queue = AutoTemporaryFile()
     self.queue_contents = {}
コード例 #3
0
ファイル: storage_cache.py プロジェクト: pyzh/relstorage
 def tpc_begin(self):
     """Prepare temp space for objects to cache."""
     # start with a fresh in-memory buffer instead of reusing one that might
     # already be spooled to disk.
     self.queue = AutoTemporaryFile()
     self.queue_contents = {}