/// <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; }
/// <summary> /// Constructor. /// </summary> /// <param name="cache">Target cache.</param> /// <param name="loc">Local flag.</param> /// <param name="peekModes">Peek modes.</param> public CacheEnumeratorProxy(CacheImpl <TK, TV> cache, bool loc, int peekModes) { _cache = cache; _loc = loc; _peekModes = peekModes; CreateTarget(); }
/// <summary> /// Constructor. /// </summary> /// <param name="cache">Target cache.</param> /// <param name="loc">Local flag.</param> /// <param name="peekModes">Peek modes.</param> private CacheEnumerable(CacheImpl <TK, TV> cache, bool loc, int peekModes) { _cache = cache; _loc = loc; _peekModes = peekModes; }
/// <summary> /// Constructor for local iterator. /// </summary> /// <param name="cache">Target cache.</param> /// <param name="peekModes">Peek modes.</param> public CacheEnumerable(CacheImpl <TK, TV> cache, int peekModes) : this(cache, true, peekModes) { // No-op. }
/// <summary> /// Constructor for distributed iterator. /// </summary> /// <param name="cache">Target cache.</param> public CacheEnumerable(CacheImpl <TK, TV> cache) : this(cache, false, 0) { // No-op. }
/// <summary> /// Initializes a new instance of the <see cref="CacheProxyImpl{K, V}"/> class. /// </summary> /// <param name="cache">The cache to wrap.</param> public CacheProxyImpl(CacheImpl <TK, TV> cache) { Debug.Assert(cache != null); _cache = cache; }