modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/CacheNearTest.cs
/// <summary>
/// Tests the existing near cache.
/// </summary>
Tests the existing near cache.
Tests the existing near cache .
[Test]
        public void TestExistingNearCache()
        {
            var cache = _grid.GetCache<int, string>(DefaultCacheName);
            cache[1] = "1";
            var nearCache = _grid.GetOrCreateNearCache<int, string>(DefaultCacheName, new NearCacheConfiguration());
            Assert.AreEqual("1", nearCache[1]);
            nearCache = _grid.GetOrCreateNearCache<int, string>(DefaultCacheName, new NearCacheConfiguration());
            Assert.AreEqual("1", nearCache[1]);
        }
[ Test ] public void TestExistingNearCache ( ) { var cache = _grid . GetCache < int , string > ( DefaultCacheName ) ; cache [ 1 ] = " " ; var nearCache = _grid . GetOrCreateNearCache < int , string > ( DefaultCacheName , new NearCacheConfiguration ( ) ) ; Assert . AreEqual ( " " , nearCache [ 1 ] ) ; nearCache = _grid . GetOrCreateNearCache < int , string > ( DefaultCacheName , new NearCacheConfiguration ( ) ) ; Assert . AreEqual ( " " , nearCache [ 1 ] ) ; }
Tests the existing near cache.
Tests the existing near cache .
// GetOrCreate when exists