Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
35e9cea
initial API cut (post review)
mgravell Apr 10, 2024
12b3a0e
basic API test
mgravell Apr 11, 2024
c5d28d4
prove that the API can be configured
mgravell Apr 11, 2024
20e1cb2
demonstrate serializer/factory configuration working
mgravell Apr 11, 2024
4379647
move to NuGet only to make the build happier
mgravell Apr 11, 2024
d382a7a
defer on trimming
mgravell Apr 11, 2024
e8bc9a9
PR review comments
mgravell Apr 11, 2024
7edddb1
tyop
mgravell Apr 11, 2024
dc622a8
Update src/Caching/Hybrid/src/Runtime/IsExternalInit.cs
mgravell Apr 11, 2024
4920182
return a leased array on netfx
mgravell Apr 11, 2024
8841e97
prefer ForEach to Walk
mgravell Apr 11, 2024
6cbe02e
Update src/Caching/Hybrid/src/Internal/InbuiltTypeSerializer.cs
mgravell Apr 11, 2024
0c0d589
Update src/Caching/Hybrid/src/Internal/DefaultJsonSerializerFactory.cs
mgravell Apr 11, 2024
ef0ad56
Update src/Caching/Hybrid/src/Internal/InbuiltTypeSerializer.cs
mgravell Apr 11, 2024
e28f316
comment nits
mgravell Apr 11, 2024
fbedef4
Merge branch 'marc/hybrid-api' of https://github.com/dotnet/aspnetcor…
mgravell Apr 11, 2024
b49151e
use TimeProvider throughout
mgravell Apr 11, 2024
c2326fd
more nits
mgravell Apr 11, 2024
29dcc2e
regen projects list
mgravell Apr 11, 2024
4ddba7f
TryAdd
mgravell Apr 12, 2024
427601c
clarify intent of null on Remove{Tags|Keys}Async
mgravell Apr 12, 2024
1db2758
Update src/Caching/Hybrid/src/Runtime/HybridCache.cs
mgravell Apr 17, 2024
2945ce0
Update src/Caching/Hybrid/src/Runtime/HybridCache.cs
mgravell Apr 17, 2024
94d9fe1
Update src/Caching/Hybrid/src/Runtime/HybridCache.cs
mgravell Apr 17, 2024
a13e1d3
Update src/Caching/Hybrid/src/Runtime/HybridCache.cs
mgravell Apr 17, 2024
2a77920
Update src/Caching/Hybrid/src/Runtime/HybridCache.cs
mgravell Apr 17, 2024
cee8ddc
Update src/Caching/Hybrid/src/Runtime/HybridCache.cs
mgravell Apr 17, 2024
7989f16
Update src/Caching/Hybrid/src/Runtime/HybridCacheEntryFlags.cs
mgravell Apr 17, 2024
49a477f
Update src/Caching/Hybrid/src/Runtime/HybridCache.cs
mgravell Apr 17, 2024
5f8bcb8
Update src/Caching/Hybrid/src/Runtime/HybridCacheEntryOptions.cs
mgravell Apr 17, 2024
7b32e0f
Update src/Caching/Hybrid/src/Runtime/HybridCache.cs
mgravell Apr 17, 2024
62b4e6f
Update src/Caching/Hybrid/src/Runtime/IBufferDistributedCache.cs
mgravell Apr 17, 2024
c6cdeae
Apply suggestions from code review
mgravell Apr 17, 2024
d624726
more PR feedback
mgravell Apr 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/Caching/Hybrid/src/Runtime/HybridCache.cs
Co-authored-by: joegoldman2 <[email protected]>
  • Loading branch information
mgravell and joegoldman2 authored Apr 17, 2024
commit 49a477f6155db4cdffc6d3020931263e91fa3060
6 changes: 3 additions & 3 deletions src/Caching/Hybrid/src/Runtime/HybridCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ public abstract ValueTask<T> GetOrCreateAsync<TState, T>(string key, TState stat
HybridCacheEntryOptions? options = null, IReadOnlyCollection<string>? tags = null, CancellationToken token = default);

/// <summary>
/// Get data from the cache, or the underlying data service if not available.
/// Asynchronously gets the value associated with the key if it exists, or generates a new entry using the provided key and a value from the given factory if the key is not found.
/// </summary>
/// <typeparam name="T">The type of the data being considered.</typeparam>
/// <param name="key">The unique key for this cache entry.</param>
/// <param name="key">The key of the entry to look for or create.</param>
/// <param name="underlyingDataCallback">Provides the underlying data service is the data is not available in the cache.</param>
/// <param name="options">Additional options for this cache entry.</param>
/// <param name="tags">The tags to associate with this cache item.</param>
/// <param name="token">Cancellation for this operation.</param>
/// <param name="token">The <see cref="CancellationToken"/> used to propagate notifications that the operation should be canceled.</param>
/// <returns>The data, either from cache or the underlying data service.</returns>
[System.Diagnostics.CodeAnalysis.SuppressMessage("ApiDesign", "RS0026:Do not add multiple public overloads with optional parameters", Justification = "Delegate differences make this unambiguous")]
public ValueTask<T> GetOrCreateAsync<T>(string key, Func<CancellationToken, ValueTask<T>> underlyingDataCallback,
Expand Down