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

示例#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;
        }
示例#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;
        }