/// <summary> /// Initializes a new async instance. /// </summary> /// <param name="cache">The cache.</param> private CacheImpl(CacheImpl <TK, TV> cache) : base(UU.CacheWithAsync(cache.Target), cache.Marshaller) { _ignite = cache._ignite; _flagSkipStore = cache._flagSkipStore; _flagKeepBinary = cache._flagKeepBinary; _flagAsync = true; _flagNoRetries = cache._flagNoRetries; }
/** <inheritDoc /> */ public ICache <TK, TV> WithAsync() { return(_flagAsync ? this : new CacheImpl <TK, TV>(_ignite, UU.CacheWithAsync(Target), Marshaller, _flagSkipStore, _flagKeepPortable, true, _flagNoRetries)); }