def get(self, obj_uuid, **kwargs): how = kwargs.get('how') if how == 'decoded': return jloads(self._storage[obj_uuid]) elif how == 'undecoded': return self._storage[obj_uuid] return self.inflate(obj_uuid)
def from_object(self, obj): return jloads(self._storage[self.uuid_from_id(obj)])