class_docstr: A memory backend which transfers the experiences from the rollout to the training worker using Redis Pub/Sub in
  Coach when distributed mode is used.
docstr: :param params: The Redis parameters to be used with this Redis Pub/Sub instance.
docstr_tok: [":","param","params",":","The","Redis","parameters","to","be","used","with","this","Redis","Pub\/Sub","instance","."]
code: def __init__(self, params: RedisPubSubMemoryBackendParameters):
      """
      :param params: The Redis parameters to be used with this Redis Pub/Sub instance.
      """
      self.params = params
      self.redis_connection = redis.Redis(
          self.params.redis_address, self.params.redis_port
      )
      self.redis_server_name = "redis-server-{}".format(uuid.uuid4())
      self.redis_service_name = "redis-service-{}".format(uuid.uuid4())
  
imports: import redis
  import pickle
  import uuid
  import time
  from rl_coach.memories.backend.memory import MemoryBackend, MemoryBackendParameters
  from rl_coach.core_types import Transition, Episode, EnvironmentSteps, EnvironmentEpisodes
  from rl_coach.logger import screen
label_desc: Use image node_id 1 to create a new RedisPubSubBackend object from inherited base classes: MemoryBackend with example: obj = RedisPubSubBackend(params)