code: def get_rolling_time_window(self, redis_conn=None, host='localhost',
                                  port=6379, key='rolling_time_window_counter',
                                  cycle_time=5, window=SECONDS_1_HOUR):
          '''
          Generate a new RollingTimeWindow
          Useful for collect data about the number of hits in the past X seconds
  
          @param redis_conn: A premade redis connection (overrides host and port)
          @param host: the redis host
          @param port: the redis port
          @param key: the key for your stats collection
          @param cycle_time: how often to check for expiring counts
          @param window: the number of seconds behind now() to keep data for
          '''
          counter = RollingTimeWindow(key=key, cycle_time=cycle_time,
                                      window=window)
          counter.setup(redis_conn=redis_conn, host=host, port=port)
          return countef get_rolling_time_window(self, redis_conn=None, host='localhost',
                                  port=6379, key='rolling_time_window_counter',
                                  cycle_time=5, window=SECONDS_1_HOUR):
          '''
          Generate a new RollingTimeWindow
          Useful for collect data about the number of hits in the past X seconds
  
          @param redis_conn: A premade redis connection (overrides host and port)
          @param host: the redis host
          @param port: the redis port
          @param key: the key for your stats collection
          @param cycle_time: how often to check for expiring counts
          @param window: the number of seconds behind now() to keep data for
          '''
          counter = RollingTimeWindow(key=key, cycle_time=cycle_time,
                                      window=window)
          counter.setup(redis_conn=redis_conn, host=host, port=port)
          return counter
docs: Generate a new RollingTimeWindow
          Useful for collect data about the number of hits in the past X seconds
  
          @param redis_conn: A premade redis connection (overrides host and port)
          @param host: the redis host
          @param port: the redis port
          @param key: the key for your stats collection
          @param cycle_time: how often to check for expiring counts
          @param window: the number of seconds behind now() to keep data for