我有一个使用signair的项目,我想介绍redis。我编写以下代码:
public static void Configure(RouteCollection routes)
{
// SignalR Routes :)
var configuration = new HubConfiguration()
{
EnableJSONP = true, // shibboleth requires this
EnableJavaScriptProxies = true,
EnableDetailedErrors = Settings.Default.EnableSignalRDetailedErrors
};
routes.MapHubs(configuration);
GlobalHost.Configuration.ConnectionTimeout = CreateIfPositive(GlobalHost.Configuration.ConnectionTimeout, Settings.Default.ConnectionTimeout);
GlobalHost.Configuration.DisconnectTimeout = CreateIfPositive(GlobalHost.Configuration.DisconnectTimeout, Settings.Default.DisconnectionTimeout);
GlobalHost.Configuration.KeepAlive = CreateIfPositive(GlobalHost.Configuration.KeepAlive, Settings.Default.KeepAlive);
// following setting is get from https://greenfinch.ie/2015/07/09/azure-licks-using-redis-cache-signalr/
var redisConnection = Settings.Default.SignalRRedisConnectionString;
// set up SignalR to use Redis, and specify an event key that will be used to identify the application in the cache
GlobalHost.DependencyResolver.UseRedis(new RedisScaleoutConfiguration(redisConnection, "ClickR"));
}
应用程序必须在shibboleth和extra shibboleth模式下工作。我必须指定redis db。我该怎么做?一切都对吗?如何查看应用程序在redis中编写的项目?提前谢谢,西蒙妮
暂无答案!
目前还没有任何答案,快来回答吧!