modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/CacheNearTest.cs
/// <summary>
/// Tests the created near cache.
/// </summary>
Tests the created near cache.
Tests the created near cache .
[Test]
        public void TestCreateNearCache()
        {
            const string cacheName = "dyn_cache";
            var cache = _grid.CreateCache<int, string>(new CacheConfiguration(cacheName));
            cache[1] = "1";
            using (var client = Ignition.Start(new IgniteConfiguration(TestUtils.GetTestConfiguration())
            {
                ClientMode = true,
                IgniteInstanceName = "client"
            }))
            {
                var nearCache = client.CreateNearCache<int, string>(cacheName, new NearCacheConfiguration());
                Assert.AreEqual("1", nearCache[1]);
                nearCache = client.CreateNearCache<int, string>(cacheName, new NearCacheConfiguration());
                Assert.AreEqual("1", nearCache[1]);
            }
        }
[ Test ] public void TestCreateNearCache ( ) { const string cacheName = " " ; var cache = _grid . CreateCache < int , string > ( new CacheConfiguration ( cacheName ) ) ; cache [ 1 ] = " " ; using ( var client = Ignition . Start ( new IgniteConfiguration ( TestUtils . GetTestConfiguration ( ) ) { ClientMode = true , IgniteInstanceName = " " } ) ) { var nearCache = client . CreateNearCache < int , string > ( cacheName , new NearCacheConfiguration ( ) ) ; Assert . AreEqual ( " " , nearCache [ 1 ] ) ; nearCache = client . CreateNearCache < int , string > ( cacheName , new NearCacheConfiguration ( ) ) ; Assert . AreEqual ( " " , nearCache [ 1 ] ) ; } }
Tests the created near cache.
Tests the created near cache .
// Create when exists.