本文整理汇总了C#中ICacheProvider.Start方法的典型用法代码示例。如果您正苦于以下问题:C# ICacheProvider.Start方法的具体用法?C# ICacheProvider.Start怎么用?C# ICacheProvider.Start使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ICacheProvider
的用法示例。
在下文中一共展示了ICacheProvider.Start方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FixtureSetup
public void FixtureSetup()
{
XmlConfigurator.Configure();
props = new Dictionary<string, string> {{"compression_enabled", "false"}, {"expiration", "20"}};
provider = new MemCacheProvider();
provider.Start(props);
}
示例2: FixtureSetup
public void FixtureSetup()
{
XmlConfigurator.Configure();
props = new Dictionary<string, string>();
provider = new CouchbaseCacheProvider();
provider.Start(props);
}
开发者ID:EzyWebwerkstaden,项目名称:nhibernate-caches-couchbase,代码行数:7,代码来源:CouchbaseCacheProviderFixture.cs
示例3: FixtureSetup
public void FixtureSetup()
{
XmlConfigurator.Configure();
props = new Dictionary<string, string>();
provider = new VelocityProvider();
provider.Start(props);
}
示例4: NHibernateSecondLevelCacheManager
/// <summary>
/// Declare the private constructor which prevent others construct its instance.
/// </summary>
private NHibernateSecondLevelCacheManager()
{
// factory = NHibernateSessionManager.Instance.GetSession().GetSessionImplementation().Factory;
_provider = new MemCacheProvider();
_provider.Start(new Dictionary<string, string>());
_client = new MemcachedClient() { PoolName = "nhibernate" };
}
示例5: FixtureSetup
public virtual void FixtureSetup()
{
XmlConfigurator.Configure();
_props = new Dictionary<string, string> {{RedisProvider.NoClearPropertyKey, "false"},
{AbstractCache.ExpirationPropertyKey, "20"},
{AbstractCache.LockAcquisitionTimeoutPropertyKey, "1"},
{AbstractCache.LockTimeoutPropertyKey, "20"}
};
_provider = new RedisProvider();
_provider.Start(_props);
}
示例6: FixtureSetup
public void FixtureSetup()
{
XmlConfigurator.Configure();
props = new Dictionary<string, string>();
// props.Add( "failover", true );
// props.Add( "initial_connections", 3 );
// props.Add( "maintenance_sleep", 30 );
// props.Add( "max_busy", 1000*60*5 );
// props.Add( "max_connections", 10 );
// props.Add( "max_idle", 1000*60*3 );
// props.Add( "min_connections", 3 );
// props.Add( "nagle", true );
// props.Add( "socket_timeout", 1000*10 );
// props.Add( "socket_connect_timeout", 50 );
provider = new MemCacheProvider();
provider.Start(props);
}
示例7: FixtureSetUp
public void FixtureSetUp()
{
props = new Dictionary<string, string>();
provider = new VelocityProvider();
provider.Start(props);
}
示例8: FixtureSetup
public void FixtureSetup()
{
props = new Dictionary<string, string>();
provider = new MembaseCacheProvider();
provider.Start(props);
}