Skip to content

Commit af74634

Browse files
authored
修复示例中的redis拼写错误
1 parent 5ba82b2 commit af74634

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sample/EasyCaching.Demo.ConsoleApp/Program.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ static void Main(string[] args)
4242
IServiceProvider serviceProvider = services.BuildServiceProvider();
4343
var factory = serviceProvider.GetService<IEasyCachingProviderFactory>();
4444

45-
//var reidsCache = factory.GetCachingProvider("r1");
45+
//var redisCache = factory.GetCachingProvider("r1");
4646

47-
//reidsCache.Set<Product>("rkey", new Product() { Name = "test" }, TimeSpan.FromSeconds(20));
47+
//redisCache.Set<Product>("rkey", new Product() { Name = "test" }, TimeSpan.FromSeconds(20));
4848

49-
//var reidsVal = reidsCache.Get<Product>("rkey");
49+
//var redisVal = redisCache.Get<Product>("rkey");
5050

51-
//Console.WriteLine($"redis cache get value, {reidsVal.HasValue} {reidsVal.IsNull} {reidsVal.Value} ");
51+
//Console.WriteLine($"redis cache get value, {redisVal.HasValue} {redisVal.IsNull} {redisVal.Value} ");
5252

5353

5454
var mCache = factory.GetCachingProvider("m1");

0 commit comments

Comments
 (0)