Skip to content

Commit

Permalink
added memory cache for items count
Browse files Browse the repository at this point in the history
Signed-off-by: David Hernando <[email protected]>
  • Loading branch information
davidatwhiletrue committed Nov 25, 2024
1 parent 7754ff5 commit b8b8bd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Docs/Demos/NCTLWebExplorer/Services/MysqlEventStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ private async Task<int> GetItemsCount(MySqlConnection connection, string entity)
{
AbsoluteExpirationRelativeToNow = TimeSpan.FromMinutes(15)
};
_memoryCache.Set(entity, countItems, cacheEntryOptions);
_memoryCache.Set(entity + "Count", countItems, cacheEntryOptions);

return countItems;
}
Expand Down

0 comments on commit b8b8bd0

Please sign in to comment.