code: func (c *Client) EventsByCreationTime(startTime, endTime int64, limit int) (events []contract.Event, err error) {
  	conn := c.Pool.Get()
  	defer conn.Close()
  
  	objects, err := getObjectsByScore(conn, db.EventsCollection+":created", startTime, endTime, limit)
  	if err != nil {
  		if err != redis.ErrNil {
  			return events, err
  		}
  	}
  
  	events = make([]contract.Event, len(objects))
  	err = unmarshalEvents(objects, events)
  	if err != nil {
  		return events, err
  	}
  
  	return events, nil
  }
docs: // Delete all of the events by the device id (and the readings)
  //DeleteEventsByDeviceId(id string) error
  // Return a list of events whos creation time is between startTime and endTime
  // Limit the number of results by limit