From 708b6e4046aef168c95b2a3a967f0dd4850666c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=AD=E4=B9=9D=E9=BC=8E?= <109224573@qq.com> Date: Thu, 23 Aug 2018 22:52:23 +0800 Subject: [PATCH] Fix code snippets --- aspnetcore/performance/caching/memory.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/performance/caching/memory.md b/aspnetcore/performance/caching/memory.md index c1ccbb42c7..31de6c0ba7 100644 --- a/aspnetcore/performance/caching/memory.md +++ b/aspnetcore/performance/caching/memory.md @@ -121,11 +121,11 @@ The following code registers `MyMemoryCache` with the [dependency injection](xre The following code uses `MyMemoryCache`: -[!code-csharp [](memory/sample/RPcache/Pages/About.cshtml.cs?name=snippet)] +[!code-csharp[](memory/sample/RPcache/Pages/About.cshtml.cs?name=snippet)] The size of the cache entry can be set by [Size](/dotnet/api/microsoft.extensions.caching.memory.memorycacheentryoptions.size?view=aspnetcore-2.1#Microsoft_Extensions_Caching_Memory_MemoryCacheEntryOptions_Size) or the [SetSize](/dotnet/api/microsoft.extensions.caching.memory.memorycacheentryextensions.setsize?view=aspnetcore-2.0#Microsoft_Extensions_Caching_Memory_MemoryCacheEntryExtensions_SetSize_Microsoft_Extensions_Caching_Memory_MemoryCacheEntryOptions_System_Int64_) extension method: -[!code-csharp [](memory/sample/RPcache/Pages/About.cshtml.cs?name=snippet2&highlight=9,10,14,15)] +[!code-csharp[](memory/sample/RPcache/Pages/About.cshtml.cs?name=snippet2&highlight=9,10,14,15)] ::: moniker-end