Simple in-memory cache.

Use this class when you need 1. to store objects that are the same for many layers 2. to reduce time needed to access the frequently requested data

Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of Maparaound.Caching.SimpleCacheAccessor.
        /// </summary>
        /// <param name="cache">Maparaound.Caching.SimpleSpatialDataCache instance</param>
        public SimpleCacheAccessor(SimpleSpatialDataCache cache)
        {
            if (cache == null)
            {
                throw new ArgumentNullException("cache");
            }

            _cache = cache;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of Maparaound.Caching.SimpleCacheAccessor.
        /// </summary>
        /// <param name="cache">Maparaound.Caching.SimpleSpatialDataCache instance</param>
        public SimpleCacheAccessor(SimpleSpatialDataCache cache)
        {
            if (cache == null)
                throw new ArgumentNullException("cache");

            _cache = cache;
        }