Skip to content

Commit c5beff0

Browse files
authored
doc(CacheList): rename CacheExpiration component (#5314)
* refactor: 组件重命名 * doc: 更新组件名称
1 parent 0c204c4 commit c5beff0

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/BootstrapBlazor.Server/Components/Pages/CacaheExpiration.razor.cs renamed to src/BootstrapBlazor.Server/Components/Components/CacheExpiration.razor.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
using Microsoft.Extensions.Caching.Memory;
77

8-
namespace BootstrapBlazor.Server.Components.Pages;
8+
namespace BootstrapBlazor.Server.Components.Components;
99

1010
/// <summary>
11-
/// CacaheExpiration 组件
11+
/// CacheExpiration 组件
1212
/// </summary>
13-
public partial class CacaheExpiration
13+
public partial class CacheExpiration
1414
{
1515
/// <summary>
1616
/// 获得/设置 <see cref="ICacheEntry"/> 实例

src/BootstrapBlazor.Server/Components/Pages/CacheList.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</TableTemplateColumn>
2121
<TableTemplateColumn Text="@Localizer["CacheListExpiration"]" Width="180">
2222
<Template Context="v">
23-
<CacaheExpiration Context="v.Row"></CacaheExpiration>
23+
<CacheExpiration Context="v.Row"></CacheExpiration>
2424
</Template>
2525
</TableTemplateColumn>
2626
<TableTemplateColumn Text="@Localizer["CacheListAction"]" Width="80">

src/BootstrapBlazor.Server/Components/Pages/CacheList.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public partial class CacheList
1919
[Inject, NotNull]
2020
private IStringLocalizer<CacheList>? Localizer { get; set; }
2121

22-
private List<object>? _cacheList;
22+
private List<object> _cacheList = [];
2323

2424
/// <summary>
2525
/// <inheritdoc/>

0 commit comments

Comments
 (0)