def set(self, prefix, key, value, cb):
        _log.debug("Set key %s, value %s" % (prefix + key, value))
        value = self.coder.encode(value) if value else value

        if prefix + key in self.localstore_sets:
            del self.localstore_sets[prefix + key]

        # Always save locally
        self.localstore[prefix + key] = value

        if self.started:
            self.storage.set(key=prefix + key, value=value, cb=CalvinCB(func=self.set_cb, org_key=key, org_value=value, org_cb=cb))
        elif cb:
            async.DelayedCall(0, cb, key=key, value=True)
Render a Post
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/north/storage.py/Storage.set--crossover with--dataset/ETHPy150Open jkossen/imposter/frontend.py/show_post