Uh oh!
There was an error while loading. Please reload this page.
Caching: migrate HybridCache api surface from asp.net into runtime - #103103
Conversation
ghost
commented
Jun 5, 2024
Note regarding the |
1 similar comment
ghost
commented
Jun 5, 2024
Note regarding the |
Tagging subscribers to this area: @dotnet/area-extensions-caching |
Tornhoof
commented
Jun 6, 2024
With all the nifty |
To offer non-string keys, we'd need the API to take a |
mgravell
commented
Jun 20, 2024
/azp run |
|
You have several pipelines (over 10) configured to build pull requests in this repository. Specify which pipelines you would like to run by using /azp run [pipelines] command. You can specify multiple pipelines using a comma separated list. |
test fail seemingly unrelated:
will retry, and if that doesn't help: try a main merge and rebase |
(after rebase) shakes fist at CI:
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…brid/HybridCache.cs Co-authored-by: David Cantú <dacantu@microsoft.com>
…brid/HybridCache.cs Co-authored-by: David Cantú <dacantu@microsoft.com>
…brid/HybridCache.cs Co-authored-by: David Cantú <dacantu@microsoft.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| /// <param name="cancellationToken">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 abstract ValueTask<T> GetOrCreateAsync<TState, T>(string key, TState state, Func<TState, CancellationToken, ValueTask<T>> factory, |
There was a problem hiding this comment.
Should the order of TState / T be changed so that in all overloads the T is first?
| { | ||
| // for the simple usage scenario (no TState), pack the original callback as the "state", and use a wrapper function that just unrolls and invokes from the state | ||
| public static readonly Func<Func<CancellationToken, ValueTask<T>>, CancellationToken, ValueTask<T>> Instance = static (callback, ct) => callback(ct); | ||
| } |
There was a problem hiding this comment.
Is this actually necessary? I seem to remember the C# compiler folding identical lambdas into the same method definition (but maybe I'm misremembering?)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| await @this.RemoveAsync(key, cancellationToken).ConfigureAwait(false); | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Any tests to add in this repo for the functionality that's here?
woohoo! does anyone in runtime (@stephentoub perhaps) have insight into the CI failure? this doesn't occur locally:
CI failure:
|
…brid/IHybridCacheSerializer.cs Co-authored-by: Stephen Toub <stoub@microsoft.com>
…brid/HybridCacheEntryOptions.cs Co-authored-by: Stephen Toub <stoub@microsoft.com>
…brid/HybridCacheEntryOptions.cs Co-authored-by: Stephen Toub <stoub@microsoft.com>
stephentoub
commented
Jul 22, 2024
Do you have a link to the failure information? |
mgravell
commented
Jul 22, 2024
most of the red crosses above; example: https://github.com/dotnet/runtime/runs/27757293802 |
stephentoub
commented
Jul 22, 2024
I'd rack it up to infrastructure hiccups unless it happens again in this next run. |
This is a draft implementation of #100290