Writing to Redis database.