code: def expire(key, seconds, host=None, port=None, db=None, password=None):
      '''
      Set a keys time to live in seconds
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' redis.expire foo 300
      '''
      server = _connect(host, port, db, password)
      return server.expire(key, secondsf expire(key, seconds, host=None, port=None, db=None, password=None):
      '''
      Set a keys time to live in seconds
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' redis.expire foo 300
      '''
      server = _connect(host, port, db, password)
      return server.expire(key, seconds)
docs: Set a keys time to live in seconds
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' redis.expire foo 300