This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal sealed class CacheService( | |
IMemoryCache memoryCache, | |
HybridCache hybridCache, | |
IDistributedCache distributedCache | |
) : ICacheService | |
{ | |
public async Task<T?> GetOrCreateAsync<T>( | |
string key, | |
Func<CancellationToken, Task<T>> factory, | |
TimeSpan? expiration = null, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
EF Core Migration Automation Script | |
.DESCRIPTION | |
Automates: | |
1. Creating a new EF Core migration | |
2. Inserting an <auto-generated /> tag into the migration file | |
3. Generating the corresponding SQL script |