Fix cache key issue.
This commit is contained in:
parent
dfd0507609
commit
3b449f0101
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue