public void Save(Tile tile, Building[] buildings)
        {
            var client = new RedisClient();
            var json = ArrayToJson (buildings);
            var key = new BuildingKeys ().GetBuildingsKey (tile.Id);
            client.Set(key, json);

            //var idManager = new DataIdManager ();
            //idManager.Add (tile);
        }
Exemple #2
0
        public void Save(Tile tile, Building[] buildings)
        {
            var client = new RedisClient();
            var json   = ArrayToJson(buildings);
            var key    = new BuildingKeys().GetBuildingsKey(tile.Id);

            client.Set(key, json);

            //var idManager = new DataIdManager ();
            //idManager.Add (tile);
        }