3

私の. client.ncconf_ どうすればいいですか?NCache 4.4SP1 オープン ソースを使用しています。execlient.ncconf

私が使用している方法は、主にWeb.Caching.NCache.InitializeCacheCache.Getです。

4

1 に答える 1

1

から構成を選択します。AppSettings に以下を追加するだけです%NCHOME% InstallDir/config

<add key="InstallDir" value="C:\temp"/>

また、すべてのクライアント構成は、 を使用してプログラムで指定できますCacheInitParams。あなたはできる

namespace Alachisoft.NCache.Web.Caching
{
    public class CacheInitParams : ICloneable
    {
        public CacheInitParams();

        public string BindIP { get; set; }
        public ClientCacheSyncMode ClientCacheSyncMode { get; set; }
        public int ClientRequestTimeOut { get; set; }
        public int CommandRetries { get; set; }
        public int CommandRetryInterval { get; set; }
        public int ConnectionRetries { get; set; }
        public int ConnectionTimeout { get; set; }
        public string DefaultReadThruProvider { get; set; }
        public string DefaultWriteThruProvider { get; set; }
        public bool LoadBalance { get; set; }
        public CacheMode Mode { get; set; }
        [Obsolete("This property is deprecated. Please use the 'ServerList' property instead.", false)]
        public int Port { get; set; }
        public SecurityParams PrimaryUserCredentials { get; set; }
        public int RetryConnectionDelay { get; set; }
        public int RetryInterval { get; set; }
        public SecurityParams SecondaryUserCredentials { get; set; }
        [Obsolete("This property is deprecated. Please use the 'ServerList' property instead.", false)]
        public string Server { get; set; }
        public CacheServerInfo[] ServerList { get; set; }

        public object Clone();
    }
}
于 2016-02-24T11:06:47.577 に答える