예제 #1
0
		/// <summary>
		/// Creates an instance of <see cref="MemcachedCache"/> with the given compression setting.
		/// </summary>
		/// <param name="enableCompression">The compression setting.</param>
		/// <returns>The cache instance.</returns>
		public ICache CreateCache(bool enableCompression)
		{
			ICache cache = new MemcachedCache(enableCompression);

			return cache;
		}
예제 #2
0
		/// <summary>
		/// Creates an instance of <see cref="MemcachedCache"/> using default settings.
		/// </summary>
		/// <returns>The cache instance.</returns>
		public ICache CreateCache()
		{
			ICache cache = new MemcachedCache();

			return cache;
		}
예제 #3
0
		/// <summary>
		/// Creates an instance of <see cref="MemcachedCache"/> using the given pool name.
		/// </summary>
		/// <param name="poolName">The pool name.</param>
		/// <returns>The cache instance.</returns>
		public ICache CreateCache(string poolName)
		{
			ICache cache = new MemcachedCache(poolName);

			return cache;
		}
예제 #4
0
		/// <summary>
		/// Creates an instance of <see cref="MemcachedCache"/> with the given 
		/// pool name and compression setting.
		/// </summary>
		/// <param name="poolName">The pool name.</param>
		/// <param name="enableCompression">The compression setting.</param>
		/// <returns>The cache instance.</returns>
		public ICache CreateCache(string poolName, bool enableCompression)
		{
			ICache cache = new MemcachedCache(poolName, enableCompression);

			return cache;
		}
예제 #5
0
        /// <summary>
        /// Creates an instance of <see cref="MemcachedCache"/> using the given pool name.
        /// </summary>
        /// <param name="poolName">The pool name.</param>
        /// <returns>The cache instance.</returns>
        public ICache CreateCache(string poolName)
        {
            ICache cache = new MemcachedCache(poolName);

            return(cache);
        }
예제 #6
0
        /// <summary>
        /// Creates an instance of <see cref="MemcachedCache"/> using default settings.
        /// </summary>
        /// <returns>The cache instance.</returns>
        public ICache CreateCache()
        {
            ICache cache = new MemcachedCache();

            return(cache);
        }
예제 #7
0
        /// <summary>
        /// Creates an instance of <see cref="MemcachedCache"/> with the given
        /// pool name and compression setting.
        /// </summary>
        /// <param name="poolName">The pool name.</param>
        /// <param name="enableCompression">The compression setting.</param>
        /// <returns>The cache instance.</returns>
        public ICache CreateCache(string poolName, bool enableCompression)
        {
            ICache cache = new MemcachedCache(poolName, enableCompression);

            return(cache);
        }
예제 #8
0
        /// <summary>
        /// Creates an instance of <see cref="MemcachedCache"/> with the given compression setting.
        /// </summary>
        /// <param name="enableCompression">The compression setting.</param>
        /// <returns>The cache instance.</returns>
        public ICache CreateCache(bool enableCompression)
        {
            ICache cache = new MemcachedCache(enableCompression);

            return(cache);
        }