def set_key(
        self,
        store_name: str,
        key: str,
        value: Any,
        ttl: Optional[int] = None,
        policy: str = "persist",
    ) -> KeyDocument:
        """Set a key in a store.
        Args:
            store_name (str): The name of the store to set the key in.
            key (str): The key to set.
            value (Any): The value to associate with the key.
            ttl (Optional[int]): Optional TTL (in seconds) after which the key
                will expire and be automatically removed.
            policy (str): The eviction policy for the key. One of:
                - ``"persist"`` (default): Key is persistent until deleted.
                - ``"evict"``: Key is eligible for eviction or cache clearing.

        Returns:
            KeyDocument: The created or updated key document.
        """
        pass
Set a key in a store.
        Args:
            store_name (str): The name of the store to set the key in.
            key (str): The key to set.
            value (Any): The value to associate with the key.
            ttl (Optional[int]): Optional TTL (in seconds) after which the key
                will expire and be automatically removed.
            policy (str): The eviction policy for the key. One of:
                - ``"persist"`` (default): Key is persistent until deleted.
                - ``"evict"``: Key is eligible for eviction or cache clearing.

        Returns:
            KeyDocument: The created or updated key document.
        
fiftyone/factory/repos/execution_store.py