class_docstr: Redis store for ticket locks.
class_docstr_tok: ["Redis","store","for","ticket","locks","."]
code: def _set_key_prefix(self, key_prefix: Text) -> None:
      if isinstance(key_prefix, str) and key_prefix.isalnum():
          self.key_prefix = (
              key_prefix + ":" + DEFAULT_REDIS_LOCK_STORE_KEY_PREFIX
          )
      else:
          logger.warning(
              f"Omitting provided non-alphanumeric redis key prefix: '{key_prefix}'. "
              f"Using default '{self.key_prefix}' instead."
          )
  
imports: from __future__ import annotations
  import asyncio
  from contextlib import asynccontextmanager
  import json
  import logging
  import os
  from typing import AsyncGenerator, Dict, Optional, Text, Union
  from rasa.shared.exceptions import RasaException, ConnectionException
  import rasa.shared.utils.common
  from rasa.core.constants import DEFAULT_LOCK_LIFETIME
  from rasa.core.lock import TicketLock
  from rasa.utils.endpoints import EndpointConfig
label_desc: Use image node_id 2 for calling the RedisLockStore obj's underlying member method code with example usage: obj._set_key_prefix(key_prefix) without return types