Skip to content

Commit fa86b8a

Browse files
committed
fix: codesets cache initialization namespace
1 parent c94d6be commit fa86b8a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

VirtualFinland.UserAPI/src/VirtualFinland.UsersAPI/Data/Repositories/CacheRepositoryFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public CacheRepositoryFactory(IDatabase database, string factoryKeyPrefix = "")
1212
{
1313
_database = database;
1414
_factoryKeyPrefix = factoryKeyPrefix;
15-
if (!string.IsNullOrEmpty(_factoryKeyPrefix)) _factoryKeyPrefix += ":";
15+
if (!string.IsNullOrEmpty(_factoryKeyPrefix)) _factoryKeyPrefix = $"{_factoryKeyPrefix}:";
1616
}
1717

1818
public ICacheRepository Create(string keyPrefix = "")

VirtualFinland.UserAPI/src/VirtualFinland.UsersAPI/Data/Repositories/CodesetsResourceRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public abstract class CodesetsResourceRepository<T>
1414
public CodesetsResourceRepository(CodesetsService codesetsService, ICacheRepositoryFactory cacheRepositoryFactory)
1515
{
1616
_codesetsService = codesetsService;
17-
_cacheRepository = cacheRepositoryFactory.Create(Constants.Cache.CodesetsPrefix);
17+
_cacheRepository = cacheRepositoryFactory.Create($"{Constants.Cache.CodesetsPrefix}:{GetType().Name}");
1818
}
1919

2020
public async Task<T> GetResource(CodesetsResource? resource = null)

0 commit comments

Comments
 (0)