Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/s/h/shove-0.5.6/shove/stores/bsdb.py   shove(Download)
    def __setitem__(self, key, value):
        self._store[b(key)] = self.dumps(value)
        self.sync()
 
    @synchronized
    def __delitem__(self, key):
        del self._store[b(key)]
        self.sync()

src/s/h/shove-0.5.6/shove/stores/zodb.py   shove(Download)
    def close(self):
        '''Closes all open storage and connections.'''
        self.sync()
        super(ZODBStore, self).close()
        self._connection.close()

src/s/h/shove-0.5.6/shove/stores/durusdb.py   shove(Download)
    def close(self):
        '''Closes all open storage and connections.'''
        self.sync()
        super(DurusStore, self).close()
        self._db.close()