def __init__(self, app, cache=None):
        """Initialize state."""
        self.app = app
        self._cache = cache
        if self.app.config['COLLECTIONS_REGISTER_RECORD_SIGNALS']:
            self.register_signals()
def __init__ ( self , app , cache = None ) : self . app = app self . _cache = cache if self . app . config [ 'COLLECTIONS_REGISTER_RECORD_SIGNALS' ] : self . register_signals ( )
Initialize state.