私の. client.ncconf
_ どうすればいいですか?NCache 4.4SP1 オープン ソースを使用しています。exe
client.ncconf
私が使用している方法は、主にWeb.Caching.NCache.InitializeCache
とCache.Get
です。
私の. client.ncconf
_ どうすればいいですか?NCache 4.4SP1 オープン ソースを使用しています。exe
client.ncconf
私が使用している方法は、主にWeb.Caching.NCache.InitializeCache
とCache.Get
です。
から構成を選択します。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();
}
}