more build errors in Core

This commit is contained in:
Nikolaj Geisle
2022-02-27 21:20:50 +01:00
parent e7b31a22be
commit d1cf640f2a
71 changed files with 281 additions and 226 deletions

View File

@@ -31,7 +31,7 @@ namespace Umbraco.Extensions
provider.Insert(cacheKey, () => getCacheItem(), timeout, isSliding, dependentFiles);
}
public static IEnumerable<T>? GetCacheItemsByKeySearch<T>(this IAppCache provider, string keyStartsWith)
public static IEnumerable<T?> GetCacheItemsByKeySearch<T>(this IAppCache provider, string keyStartsWith)
{
var result = provider.SearchByKey(keyStartsWith);
return result.Select(x => x.TryConvertTo<T>().Result);