def set_value(self, name, value, ttl=None, local=True):
        if ttl:
            raise ValueError('MockDatastoreService.set_value doesn\'t support "ttl" argument')

        name = self._get_full_key_name(name=name, local=local)

        instance = KeyValuePair()
        instance.id = name
        instance.name = name
        instance.value = value

        self._datastore_items[name] = instance
        return True
Return a cache key for an existing placeholder object.
dataset/ETHPy150Open StackStorm/st2/st2tests/st2tests/mocks/datastore.py/MockDatastoreService.set_value--crossover with--dataset/ETHPy150Open edoburu/django-fluent-contents/fluent_contents/cache.py/get_placeholder_cache_key