Fix cache key issue.

This commit is contained in:
Haiping Chen 2024-08-22 21:09:06 -05:00
parent dfd0507609
commit 3b449f0101
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@ public class SharpCacheAttribute : MoAttribute
private string GetCacheKey(MethodContext context)
{
var key = _prefix;
var key = _prefix + "-" + context.Method.Name;
foreach (var arg in context.Arguments)
{
if (arg is null)

View file

@ -43,7 +43,7 @@ public class Pagination : ICacheKey
public bool ReturnTotal { get; set; } = true;
public string GetCacheKey()
=> $"{_page}_{_size}_{Sort}_{Order}";
=> $"{nameof(Pagination)}_{_page}_{_size}_{Sort}_{Order}";
}
public class PagedItems<T>