How to use tempstorage - 2 common examples

To help you get started, we’ve selected a few tempstorage examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zopefoundation / Zope / src / Products / TemporaryFolder / TemporaryFolder.py View on Github external
def _createDB(self):
        """ Create a mounted RAM database """
        return DB(TemporaryStorage())
github zopefoundation / Zope / lib / python / Products / TemporaryFolder / TemporaryFolder.py View on Github external
def _createDB(self, db=None): # huh?  db=db was original
        """ Create a mounted RAM database """
        db = DB(TemporaryStorage())
        # the connection in 2.5.X - 2.6.1 was a "low conflict connection",
        # but this caused synchronization problems.  For 2.6.2, we want
        # to reenable read conflict errors, so we use a default connection
        # type.
        #db.klass = LowConflictConnection
        return db

tempstorage

A RAM-based storage for ZODB

ZPL-2.1
Latest version published 2 years ago

Package Health Score

48 / 100
Full package analysis

Popular tempstorage functions

Similar packages