forked from ServiceStack/ServiceStack.Redis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestConfig.cs
More file actions
45 lines (38 loc) · 1.13 KB
/
Copy pathTestConfig.cs
File metadata and controls
45 lines (38 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using ServiceStack.Common.Support;
using ServiceStack.Logging;
namespace ServiceStack.Redis.Tests
{
public static class TestConfig
{
static TestConfig()
{
LogManager.LogFactory = new InMemoryLogFactory();
}
public const bool IgnoreLongTests = true;
public const string SingleHost = "localhost";
public static readonly string[] MasterHosts = new[] { "localhost" };
public static readonly string[] SlaveHosts = new[] { "localhost" };
public const int RedisPort = 6379;
public const int AlchemyPort = 6380;
public static string SingleHostConnectionString
{
get
{
return SingleHost + ":" + RedisPort;
}
}
public static BasicRedisClientManager BasicClientManger
{
get
{
return new BasicRedisClientManager(new string[1]
{
TestConfig.SingleHostConnectionString
});
}
}
//public const string SingleHost = "chi-dev-mem1.ddnglobal.local";
//public static readonly string [] MasterHosts = new[] { "chi-dev-mem1.ddnglobal.local" };
//public static readonly string [] SlaveHosts = new[] { "chi-dev-mem1.ddnglobal.local", "chi-dev-mem2.ddnglobal.local" };
}
}