|
1 | 1 | // Licensed to the .NET Foundation under one or more agreements.
|
2 | 2 | // The .NET Foundation licenses this file to you under the MIT license.
|
3 | 3 |
|
4 |
| -using System.Buffers; |
5 |
| -using System.IO.Pipelines; |
6 |
| - |
7 | 4 | namespace Microsoft.AspNetCore.OutputCaching;
|
8 | 5 |
|
9 | 6 | /// <summary>
|
@@ -37,29 +34,3 @@ public interface IOutputCacheStore
|
37 | 34 | /// <param name="cancellationToken">Indicates that the operation should be cancelled.</param>
|
38 | 35 | ValueTask SetAsync(string key, byte[] value, string[]? tags, TimeSpan validFor, CancellationToken cancellationToken);
|
39 | 36 | }
|
40 |
| - |
41 |
| -/// <summary> |
42 |
| -/// Represents a store for cached responses that uses a <see cref="IBufferWriter{byte}"/> as the target. |
43 |
| -/// </summary> |
44 |
| -public interface IOutputCacheBufferStore : IOutputCacheStore |
45 |
| -{ |
46 |
| - /// <summary> |
47 |
| - /// Gets the cached response for the given key, if it exists. |
48 |
| - /// If no cached response exists for the given key, <c>null</c> is returned. |
49 |
| - /// </summary> |
50 |
| - /// <param name="key">The cache key to look up.</param> |
51 |
| - /// <param name="destination">The location to which the value should be written.</param> |
52 |
| - /// <param name="cancellationToken">Indicates that the operation should be cancelled.</param> |
53 |
| - /// <returns><c>True</c> if the response cache entry if it exists; otherwise <c>False</c>.</returns> |
54 |
| - ValueTask<bool> TryGetAsync(string key, PipeWriter destination, CancellationToken cancellationToken); |
55 |
| - |
56 |
| - /// <summary> |
57 |
| - /// Stores the given response in the response cache. |
58 |
| - /// </summary> |
59 |
| - /// <param name="key">The cache key to store the response under.</param> |
60 |
| - /// <param name="value">The response cache entry to store; this value is only defined for the duration of the method, and should not be stored without making a copy.</param> |
61 |
| - /// <param name="tags">The tags associated with the cache entry to store.</param> |
62 |
| - /// <param name="validFor">The amount of time the entry will be kept in the cache before expiring, relative to now.</param> |
63 |
| - /// <param name="cancellationToken">Indicates that the operation should be cancelled.</param> |
64 |
| - ValueTask SetAsync(string key, ReadOnlySequence<byte> value, ReadOnlyMemory<string> tags, TimeSpan validFor, CancellationToken cancellationToken); |
65 |
| -} |
0 commit comments