diff --git a/src/CacheTower.Serializers.SystemTextJson/CacheTower.Serializers.SystemTextJson.csproj b/src/CacheTower.Serializers.SystemTextJson/CacheTower.Serializers.SystemTextJson.csproj index 4500f30c..71641979 100644 --- a/src/CacheTower.Serializers.SystemTextJson/CacheTower.Serializers.SystemTextJson.csproj +++ b/src/CacheTower.Serializers.SystemTextJson/CacheTower.Serializers.SystemTextJson.csproj @@ -1,14 +1,14 @@  - netstandard2.0 + netstandard2.0;net6.0 System.Text.Json Serializer for Cache Tower System.Text.Json cache serialization for Cache Tower system.text.json;json;$(PackageBaseTags) James Turner - + @@ -16,5 +16,4 @@ - - + \ No newline at end of file diff --git a/src/CacheTower/CacheTower.csproj b/src/CacheTower/CacheTower.csproj index 3cf7596e..1cf2eca7 100644 --- a/src/CacheTower/CacheTower.csproj +++ b/src/CacheTower/CacheTower.csproj @@ -1,7 +1,7 @@  - netstandard2.0;netstandard2.1 + netstandard2.0;netstandard2.1;net6.0 Cache Tower A multi-layered caching system for .NET inmemory,$(PackageBaseTags) @@ -13,7 +13,13 @@ - + + + + + + + @@ -21,5 +27,5 @@ - + diff --git a/src/CacheTower/Internal/CacheEntryKeyLock.cs b/src/CacheTower/Internal/CacheEntryKeyLock.cs index 62287389..fdcb049b 100644 --- a/src/CacheTower/Internal/CacheEntryKeyLock.cs +++ b/src/CacheTower/Internal/CacheEntryKeyLock.cs @@ -22,7 +22,7 @@ public bool AcquireLock(string cacheKey) keyLocks[cacheKey] = null; } return hasLock; -#elif NETSTANDARD2_1 +#else return keyLocks.TryAdd(cacheKey, null); #endif } @@ -56,7 +56,7 @@ private bool TryRemove(string cacheKey, out TaskCompletionSource? c return true; } return false; -#elif NETSTANDARD2_1 +#else return keyLocks.Remove(cacheKey, out completionSource); #endif } diff --git a/src/CacheTower/Internal/MD5HashUtility.cs b/src/CacheTower/Internal/MD5HashUtility.cs index ff33d6b2..c5bc487e 100644 --- a/src/CacheTower/Internal/MD5HashUtility.cs +++ b/src/CacheTower/Internal/MD5HashUtility.cs @@ -17,7 +17,7 @@ public static unsafe string ComputeHash(string value) var bytes = Encoding.UTF8.GetBytes(value); var hashBytes = HashAlgorithm.ComputeHash(bytes); -#elif NETSTANDARD2_1 +#else public static unsafe string ComputeHash(ReadOnlySpan value) { var encoding = Encoding.UTF8;