def set(
        self, key: str, value: Any, ttl: Optional[int] = None, policy=None
    ) -> None:
        """Sets the value of a key in the specified store.

        Args:
            key: the key to set
            value: the value to set
            ttl (None): an optional TTL in seconds
            policy (persist): the eviction policy for the key. Can be "persist" or "evict".
                If "persist", the key will never be automatically removed.
                If "evict", the key may be removed automatically if a TTL is set,
                or manually via :meth:`clear_cache`.

        Returns:
            a :class:`fiftyone.store.models.KeyDocument`
        """
        if policy is None:
            policy = self._default_policy

        self._store_service.set_key(
            self.store_name, key, value, ttl=ttl, policy=policy
        )
Sets the value of a key in the specified store.

        Args:
            key: the key to set
            value: the value to set
            ttl (None): an optional TTL in seconds
            policy (persist): the eviction policy for the key. Can be "persist" or "evict".
                If "persist", the key will never be automatically removed.
                If "evict", the key may be removed automatically if a TTL is set,
                or manually via :meth:`clear_cache`.

        Returns:
            a :class:`fiftyone.store.models.KeyDocument`
        
fiftyone/operators/store/store.py