|
|
|
@ -150,7 +150,7 @@ public class ExpedienceRepository : IExpedienceRepository
|
|
|
|
var cacheKey = $"xpd-th";
|
|
|
|
var cacheKey = $"xpd-th";
|
|
|
|
var cacheSeconds = 600;
|
|
|
|
var cacheSeconds = 600;
|
|
|
|
var records = await _memcachedClient.GetValueOrCreateAsync(cacheKey, cacheSeconds,
|
|
|
|
var records = await _memcachedClient.GetValueOrCreateAsync(cacheKey, cacheSeconds,
|
|
|
|
async () => await _dbContext.ContentTypeRecords.FromSqlInterpolated($"SELECT * FROM public.get_contenttyperecords({contentType})")
|
|
|
|
async () => await _dbContext.ContentTypeRecords.FromSqlInterpolated($"SELECT * FROM public.get_contenttyperesults({contentType})")
|
|
|
|
.ToListAsync(cancellationToken));
|
|
|
|
.ToListAsync(cancellationToken));
|
|
|
|
|
|
|
|
|
|
|
|
return records;
|
|
|
|
return records;
|
|
|
|
|