/// <summary>
        /// Adds a way to this database.
        /// </summary>
        /// <param name="way"></param>
        public override void AddWay(Way way)
        {
            // save the way in the current redis key.
            string wayKey = way.GetRedisKey();

            _wayTypeClient.SetEntry(wayKey, PrimitiveExtensions.ConvertTo(way));

            // save the way-node relation.
            if (way.Nodes != null)
            {
                foreach (long nodeId in way.Nodes)
                {
                    _redisClient.AddItemToSet(PrimitiveExtensions.BuildNodeWayListRedisKey(nodeId),
                                              way.Id.Value.ToString());
                }
            }
        }