Sets events.key based on redis prefix