Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
Optionally serializes and compresses object `value`.

src/s/h/shove-0.5.6/shove/caches/redisdb.py   shove(Download)
    def __setitem__(self, key, value):
        self._store.setex(key, self.dumps(value), self.timeout)
 
    def __delitem__(self, key):
        self._store.delete(key)

src/s/h/shove-0.5.6/shove/caches/memcached.py   shove(Download)
    def __setitem__(self, key, value):
        self._store.set(key, self.dumps(value), self.timeout)
 
    def __delitem__(self, key):
        self._store.delete(key)

src/s/h/shove-0.5.6/shove/caches/db.py   shove(Download)
    def __setitem__(self, key, value):
        value = self.dumps(value)
        # cull if too many items
        if len(self) >= self._max_entries:
            self._cull()