@tsonic/microsoft-extensions 10.0.3 → 10.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Microsoft.Extensions.Caching.Distributed/internal/index.d.ts +27 -19
- package/Microsoft.Extensions.Caching.Hybrid/internal/index.d.ts +29 -21
- package/Microsoft.Extensions.Caching.Memory/internal/index.d.ts +54 -31
- package/Microsoft.Extensions.Configuration/internal/index.d.ts +141 -70
- package/Microsoft.Extensions.Configuration.CommandLine/internal/index.d.ts +17 -11
- package/Microsoft.Extensions.Configuration.EnvironmentVariables/internal/index.d.ts +13 -7
- package/Microsoft.Extensions.Configuration.Ini/internal/index.d.ts +25 -8
- package/Microsoft.Extensions.Configuration.Json/internal/index.d.ts +24 -7
- package/Microsoft.Extensions.Configuration.KeyPerFile/internal/index.d.ts +16 -9
- package/Microsoft.Extensions.Configuration.Memory/internal/index.d.ts +21 -13
- package/Microsoft.Extensions.Configuration.UserSecrets/internal/index.d.ts +6 -2
- package/Microsoft.Extensions.Configuration.Xml/internal/index.d.ts +29 -10
- package/Microsoft.Extensions.DependencyInjection/internal/index.d.ts +171 -114
- package/Microsoft.Extensions.DependencyInjection.Extensions/internal/index.d.ts +18 -18
- package/Microsoft.Extensions.Diagnostics.HealthChecks/internal/index.d.ts +51 -31
- package/Microsoft.Extensions.Diagnostics.Metrics/internal/index.d.ts +31 -19
- package/Microsoft.Extensions.Diagnostics.Metrics.Configuration/internal/index.d.ts +3 -1
- package/Microsoft.Extensions.FileProviders/internal/index.d.ts +65 -38
- package/Microsoft.Extensions.FileProviders.Composite/internal/index.d.ts +16 -12
- package/Microsoft.Extensions.FileProviders.Embedded/internal/index.d.ts +9 -7
- package/Microsoft.Extensions.FileProviders.Internal/internal/index.d.ts +15 -11
- package/Microsoft.Extensions.FileProviders.Physical/internal/index.d.ts +36 -15
- package/Microsoft.Extensions.FileSystemGlobbing/internal/index.d.ts +23 -13
- package/Microsoft.Extensions.FileSystemGlobbing.Abstractions/internal/index.d.ts +16 -6
- package/Microsoft.Extensions.FileSystemGlobbing.Internal/internal/index.d.ts +24 -10
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PathSegments/internal/index.d.ts +30 -20
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts/internal/index.d.ts +47 -15
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.Patterns/internal/index.d.ts +4 -2
- package/Microsoft.Extensions.Hosting/internal/index.d.ts +84 -39
- package/Microsoft.Extensions.Hosting.Internal/internal/index.d.ts +22 -13
- package/Microsoft.Extensions.Http/internal/index.d.ts +18 -10
- package/Microsoft.Extensions.Http.Logging/internal/index.d.ts +21 -9
- package/Microsoft.Extensions.Internal/internal/index.d.ts +9 -5
- package/Microsoft.Extensions.Localization/internal/index.d.ts +48 -19
- package/Microsoft.Extensions.Logging/internal/index.d.ts +108 -66
- package/Microsoft.Extensions.Logging.Abstractions/internal/index.d.ts +41 -22
- package/Microsoft.Extensions.Logging.Configuration/internal/index.d.ts +10 -2
- package/Microsoft.Extensions.Logging.Console/internal/index.d.ts +34 -10
- package/Microsoft.Extensions.Logging.Debug/internal/index.d.ts +8 -5
- package/Microsoft.Extensions.Logging.EventLog/internal/index.d.ts +13 -7
- package/Microsoft.Extensions.Logging.EventSource/internal/index.d.ts +14 -7
- package/Microsoft.Extensions.Logging.TraceSource/internal/index.d.ts +9 -6
- package/Microsoft.Extensions.ObjectPool/internal/index.d.ts +33 -7
- package/Microsoft.Extensions.Options/internal/index.d.ts +257 -128
- package/Microsoft.Extensions.Primitives/internal/index.d.ts +68 -22
- package/Microsoft.Extensions.Primitives.d.ts +3 -0
- package/Microsoft.Extensions.Validation/internal/index.d.ts +41 -21
- package/Microsoft.Extensions.WebEncoders/internal/index.d.ts +5 -3
- package/Microsoft.Extensions.WebEncoders.Testing/internal/index.d.ts +10 -4
- package/System.Diagnostics/internal/index.d.ts +37 -10
- package/System.Diagnostics.Eventing.Reader/internal/index.d.ts +146 -70
- package/System.Net.Http/internal/index.d.ts +7 -3
- package/System.Security.Cryptography/internal/index.d.ts +16 -5
- package/System.Security.Cryptography.Pkcs/internal/index.d.ts +162 -69
- package/System.Security.Cryptography.Xml/internal/index.d.ts +115 -16
- package/__internal/extensions/index.d.ts +633 -487
- package/package.json +3 -3
|
@@ -9,31 +9,35 @@ import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint12
|
|
|
9
9
|
import type { MemoryDistributedCacheOptions } from "../../Microsoft.Extensions.Caching.Memory/internal/index.js";
|
|
10
10
|
import type { ILoggerFactory } from "../../Microsoft.Extensions.Logging/internal/index.js";
|
|
11
11
|
import type { IOptions_1 } from "../../Microsoft.Extensions.Options/internal/index.js";
|
|
12
|
-
import type {
|
|
13
|
-
import
|
|
14
|
-
import type {
|
|
15
|
-
import
|
|
16
|
-
import type {
|
|
12
|
+
import type { IBufferWriter_1, ReadOnlySequence_1 } from "@tsonic/dotnet/System.Buffers/internal/index.js";
|
|
13
|
+
import type { Task, Task_1, ValueTask, ValueTask_1 } from "@tsonic/dotnet/System.Threading.Tasks/internal/index.js";
|
|
14
|
+
import type { CancellationToken } from "@tsonic/dotnet/System.Threading/internal/index.js";
|
|
15
|
+
import * as System_Internal from "@tsonic/dotnet/System/internal/index.js";
|
|
16
|
+
import type { Boolean as ClrBoolean, Byte, DateTimeOffset, Nullable_1, Object as ClrObject, String as ClrString, TimeSpan, Void } from "@tsonic/dotnet/System/internal/index.js";
|
|
17
17
|
|
|
18
18
|
export interface IBufferDistributedCache$instance extends IDistributedCache {
|
|
19
|
+
readonly __tsonic_iface_Microsoft_Extensions_Caching_Distributed_IBufferDistributedCache: never;
|
|
20
|
+
|
|
19
21
|
Get(key: string): byte[] | undefined;
|
|
20
|
-
GetAsync(key: string, token?: CancellationToken):
|
|
22
|
+
GetAsync(key: string, token?: CancellationToken): Task_1<byte[] | undefined>;
|
|
21
23
|
Refresh(key: string): void;
|
|
22
24
|
RefreshAsync(key: string, token?: CancellationToken): Task;
|
|
23
|
-
Set(key: string, value:
|
|
25
|
+
Set(key: string, value: ReadOnlySequence_1<System_Internal.Byte>, options: DistributedCacheEntryOptions): void;
|
|
24
26
|
Set(key: string, value: byte[], options: DistributedCacheEntryOptions): void;
|
|
25
|
-
SetAsync(key: string, value:
|
|
27
|
+
SetAsync(key: string, value: ReadOnlySequence_1<System_Internal.Byte>, options: DistributedCacheEntryOptions, token?: CancellationToken): ValueTask;
|
|
26
28
|
SetAsync(key: string, value: byte[], options: DistributedCacheEntryOptions, token?: CancellationToken): Task;
|
|
27
|
-
TryGet(key: string, destination:
|
|
28
|
-
TryGetAsync(key: string, destination:
|
|
29
|
+
TryGet(key: string, destination: IBufferWriter_1<System_Internal.Byte>): boolean;
|
|
30
|
+
TryGetAsync(key: string, destination: IBufferWriter_1<System_Internal.Byte>, token?: CancellationToken): ValueTask_1<System_Internal.Boolean>;
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
|
|
32
34
|
export type IBufferDistributedCache = IBufferDistributedCache$instance;
|
|
33
35
|
|
|
34
36
|
export interface IDistributedCache$instance {
|
|
37
|
+
readonly __tsonic_iface_Microsoft_Extensions_Caching_Distributed_IDistributedCache: never;
|
|
38
|
+
|
|
35
39
|
Get(key: string): byte[] | undefined;
|
|
36
|
-
GetAsync(key: string, token?: CancellationToken):
|
|
40
|
+
GetAsync(key: string, token?: CancellationToken): Task_1<byte[] | undefined>;
|
|
37
41
|
Refresh(key: string): void;
|
|
38
42
|
RefreshAsync(key: string, token?: CancellationToken): Task;
|
|
39
43
|
Set(key: string, value: byte[], options: DistributedCacheEntryOptions): void;
|
|
@@ -44,9 +48,11 @@ export interface IDistributedCache$instance {
|
|
|
44
48
|
export type IDistributedCache = IDistributedCache$instance;
|
|
45
49
|
|
|
46
50
|
export interface DistributedCacheEntryOptions$instance {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
readonly __tsonic_type_Microsoft_Extensions_Caching_Distributed_DistributedCacheEntryOptions: never;
|
|
52
|
+
|
|
53
|
+
AbsoluteExpiration: Nullable_1<DateTimeOffset>;
|
|
54
|
+
AbsoluteExpirationRelativeToNow: Nullable_1<TimeSpan>;
|
|
55
|
+
SlidingExpiration: Nullable_1<TimeSpan>;
|
|
50
56
|
}
|
|
51
57
|
|
|
52
58
|
|
|
@@ -57,9 +63,13 @@ export const DistributedCacheEntryOptions: {
|
|
|
57
63
|
|
|
58
64
|
export type DistributedCacheEntryOptions = DistributedCacheEntryOptions$instance;
|
|
59
65
|
|
|
60
|
-
export interface MemoryDistributedCache$instance {
|
|
66
|
+
export interface MemoryDistributedCache$instance extends IDistributedCache$instance {
|
|
67
|
+
readonly __tsonic_type_Microsoft_Extensions_Caching_Distributed_MemoryDistributedCache: never;
|
|
68
|
+
|
|
69
|
+
readonly __tsonic_iface_Microsoft_Extensions_Caching_Distributed_IDistributedCache: never;
|
|
70
|
+
|
|
61
71
|
Get(key: string): byte[] | undefined;
|
|
62
|
-
GetAsync(key: string, token?: CancellationToken):
|
|
72
|
+
GetAsync(key: string, token?: CancellationToken): Task_1<byte[] | undefined>;
|
|
63
73
|
Refresh(key: string): void;
|
|
64
74
|
RefreshAsync(key: string, token?: CancellationToken): Task;
|
|
65
75
|
Remove(key: string): void;
|
|
@@ -79,8 +89,6 @@ export interface __MemoryDistributedCache$views {
|
|
|
79
89
|
As_IDistributedCache(): IDistributedCache$instance;
|
|
80
90
|
}
|
|
81
91
|
|
|
82
|
-
export interface MemoryDistributedCache$instance extends IDistributedCache$instance {}
|
|
83
|
-
|
|
84
92
|
export type MemoryDistributedCache = MemoryDistributedCache$instance & __MemoryDistributedCache$views;
|
|
85
93
|
|
|
86
94
|
|
|
@@ -95,7 +103,7 @@ export type DistributedCacheEntryExtensions = DistributedCacheEntryExtensions$in
|
|
|
95
103
|
|
|
96
104
|
export abstract class DistributedCacheExtensions$instance {
|
|
97
105
|
static GetString(cache: IDistributedCache, key: string): string | undefined;
|
|
98
|
-
static GetStringAsync(cache: IDistributedCache, key: string, token?: CancellationToken):
|
|
106
|
+
static GetStringAsync(cache: IDistributedCache, key: string, token?: CancellationToken): Task_1<string | undefined>;
|
|
99
107
|
static Set(cache: IDistributedCache, key: string, value: byte[]): void;
|
|
100
108
|
static SetAsync(cache: IDistributedCache, key: string, value: byte[], token?: CancellationToken): Task;
|
|
101
109
|
static SetString(cache: IDistributedCache, key: string, value: string, options: DistributedCacheEntryOptions): void;
|
|
@@ -9,13 +9,13 @@ import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint12
|
|
|
9
9
|
import type { ptr } from "@tsonic/core/types.js";
|
|
10
10
|
|
|
11
11
|
// Import types from other namespaces
|
|
12
|
-
import type {
|
|
13
|
-
import type {
|
|
14
|
-
import
|
|
15
|
-
import type {
|
|
16
|
-
import type {
|
|
17
|
-
import
|
|
18
|
-
import type {
|
|
12
|
+
import type { IBufferWriter_1, ReadOnlySequence_1 } from "@tsonic/dotnet/System.Buffers/internal/index.js";
|
|
13
|
+
import type { IEnumerable_1 } from "@tsonic/dotnet/System.Collections.Generic/internal/index.js";
|
|
14
|
+
import type { DefaultInterpolatedStringHandler } from "@tsonic/dotnet/System.Runtime.CompilerServices/internal/index.js";
|
|
15
|
+
import type { ValueTask, ValueTask_1 } from "@tsonic/dotnet/System.Threading.Tasks/internal/index.js";
|
|
16
|
+
import type { CancellationToken } from "@tsonic/dotnet/System.Threading/internal/index.js";
|
|
17
|
+
import * as System_Internal from "@tsonic/dotnet/System/internal/index.js";
|
|
18
|
+
import type { Boolean as ClrBoolean, Byte, Char, Enum, Func_2, Func_3, IComparable, IConvertible, IFormattable, Int32, ISpanFormattable, Nullable_1, Object as ClrObject, ReadOnlySpan_1, String as ClrString, TimeSpan, Void } from "@tsonic/dotnet/System/internal/index.js";
|
|
19
19
|
|
|
20
20
|
export enum HybridCacheEntryFlags {
|
|
21
21
|
None = 0,
|
|
@@ -31,14 +31,18 @@ export enum HybridCacheEntryFlags {
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
export interface IHybridCacheSerializer_1$instance<T> {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
readonly __tsonic_iface_Microsoft_Extensions_Caching_Hybrid_IHybridCacheSerializer_1: never;
|
|
35
|
+
|
|
36
|
+
Deserialize(source: ReadOnlySequence_1<System_Internal.Byte>): T;
|
|
37
|
+
Serialize(value: T, target: IBufferWriter_1<System_Internal.Byte>): void;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
|
|
39
41
|
export type IHybridCacheSerializer_1<T> = IHybridCacheSerializer_1$instance<T>;
|
|
40
42
|
|
|
41
43
|
export interface IHybridCacheSerializerFactory$instance {
|
|
44
|
+
readonly __tsonic_iface_Microsoft_Extensions_Caching_Hybrid_IHybridCacheSerializerFactory: never;
|
|
45
|
+
|
|
42
46
|
TryCreateSerializer<T>(serializer: IHybridCacheSerializer_1<T>): boolean;
|
|
43
47
|
}
|
|
44
48
|
|
|
@@ -46,17 +50,19 @@ export interface IHybridCacheSerializerFactory$instance {
|
|
|
46
50
|
export type IHybridCacheSerializerFactory = IHybridCacheSerializerFactory$instance;
|
|
47
51
|
|
|
48
52
|
export interface HybridCache$instance {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
GetOrCreateAsync<T>(key:
|
|
52
|
-
GetOrCreateAsync<
|
|
53
|
-
GetOrCreateAsync<T>(key:
|
|
54
|
-
GetOrCreateAsync<TState, T>(key:
|
|
53
|
+
readonly __tsonic_type_Microsoft_Extensions_Caching_Hybrid_HybridCache: never;
|
|
54
|
+
|
|
55
|
+
GetOrCreateAsync<TState, T>(key: string, state: TState, factory: Func_3<TState, CancellationToken, ValueTask_1<T>>, options?: HybridCacheEntryOptions, tags?: IEnumerable_1<System_Internal.String>, cancellationToken?: CancellationToken): ValueTask_1<T>;
|
|
56
|
+
GetOrCreateAsync<T>(key: string, factory: Func_2<CancellationToken, ValueTask_1<T>>, options?: HybridCacheEntryOptions, tags?: IEnumerable_1<System_Internal.String>, cancellationToken?: CancellationToken): ValueTask_1<T>;
|
|
57
|
+
GetOrCreateAsync<T>(key: ReadOnlySpan_1<System_Internal.Char>, factory: Func_2<CancellationToken, ValueTask_1<T>>, options?: HybridCacheEntryOptions, tags?: IEnumerable_1<System_Internal.String>, cancellationToken?: CancellationToken): ValueTask_1<T>;
|
|
58
|
+
GetOrCreateAsync<TState, T>(key: ReadOnlySpan_1<System_Internal.Char>, state: TState, factory: Func_3<TState, CancellationToken, ValueTask_1<T>>, options?: HybridCacheEntryOptions, tags?: IEnumerable_1<System_Internal.String>, cancellationToken?: CancellationToken): ValueTask_1<T>;
|
|
59
|
+
GetOrCreateAsync<T>(key: DefaultInterpolatedStringHandler, factory: Func_2<CancellationToken, ValueTask_1<T>>, options?: HybridCacheEntryOptions, tags?: IEnumerable_1<System_Internal.String>, cancellationToken?: CancellationToken): ValueTask_1<T>;
|
|
60
|
+
GetOrCreateAsync<TState, T>(key: DefaultInterpolatedStringHandler, state: TState, factory: Func_3<TState, CancellationToken, ValueTask_1<T>>, options?: HybridCacheEntryOptions, tags?: IEnumerable_1<System_Internal.String>, cancellationToken?: CancellationToken): ValueTask_1<T>;
|
|
55
61
|
RemoveAsync(key: string, cancellationToken?: CancellationToken): ValueTask;
|
|
56
|
-
RemoveAsync(keys:
|
|
57
|
-
RemoveByTagAsync(tags:
|
|
62
|
+
RemoveAsync(keys: IEnumerable_1<System_Internal.String>, cancellationToken?: CancellationToken): ValueTask;
|
|
63
|
+
RemoveByTagAsync(tags: IEnumerable_1<System_Internal.String>, cancellationToken?: CancellationToken): ValueTask;
|
|
58
64
|
RemoveByTagAsync(tag: string, cancellationToken?: CancellationToken): ValueTask;
|
|
59
|
-
SetAsync<T>(key: string, value: T, options?: HybridCacheEntryOptions, tags?:
|
|
65
|
+
SetAsync<T>(key: string, value: T, options?: HybridCacheEntryOptions, tags?: IEnumerable_1<System_Internal.String>, cancellationToken?: CancellationToken): ValueTask;
|
|
60
66
|
}
|
|
61
67
|
|
|
62
68
|
|
|
@@ -67,9 +73,11 @@ export const HybridCache: (abstract new() => HybridCache) & {
|
|
|
67
73
|
export type HybridCache = HybridCache$instance;
|
|
68
74
|
|
|
69
75
|
export interface HybridCacheEntryOptions$instance {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
76
|
+
readonly __tsonic_type_Microsoft_Extensions_Caching_Hybrid_HybridCacheEntryOptions: never;
|
|
77
|
+
|
|
78
|
+
Expiration: Nullable_1<TimeSpan>;
|
|
79
|
+
Flags: Nullable_1<HybridCacheEntryFlags>;
|
|
80
|
+
LocalCacheExpiration: Nullable_1<TimeSpan>;
|
|
73
81
|
}
|
|
74
82
|
|
|
75
83
|
|
|
@@ -14,12 +14,12 @@ import type { ILoggerFactory } from "../../Microsoft.Extensions.Logging/internal
|
|
|
14
14
|
import * as Microsoft_Extensions_Options_Internal from "../../Microsoft.Extensions.Options/internal/index.js";
|
|
15
15
|
import type { IOptions_1 } from "../../Microsoft.Extensions.Options/internal/index.js";
|
|
16
16
|
import type { IChangeToken } from "../../Microsoft.Extensions.Primitives/internal/index.js";
|
|
17
|
-
import type {
|
|
18
|
-
import * as
|
|
19
|
-
import type {
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import type {
|
|
17
|
+
import type { IEnumerable_1, IList_1 } from "@tsonic/dotnet/System.Collections.Generic/internal/index.js";
|
|
18
|
+
import * as System_Runtime_Serialization_Internal from "@tsonic/dotnet/System.Runtime.Serialization/internal/index.js";
|
|
19
|
+
import type { ISerializable } from "@tsonic/dotnet/System.Runtime.Serialization/internal/index.js";
|
|
20
|
+
import type { Task_1 } from "@tsonic/dotnet/System.Threading.Tasks/internal/index.js";
|
|
21
|
+
import * as System_Internal from "@tsonic/dotnet/System/internal/index.js";
|
|
22
|
+
import type { AsyncCallback, Boolean as ClrBoolean, Char, DateTimeOffset, Double, Enum, Func_2, IAsyncResult, ICloneable, IComparable, IConvertible, IDisposable, IFormattable, Int32, Int64, IntPtr, ISpanFormattable, MulticastDelegate, Nullable_1, Object as ClrObject, ReadOnlySpan_1, TimeSpan, Void } from "@tsonic/dotnet/System/internal/index.js";
|
|
23
23
|
|
|
24
24
|
export enum CacheItemPriority {
|
|
25
25
|
Low = 0,
|
|
@@ -43,22 +43,28 @@ export type PostEvictionDelegate = (key: unknown, value: unknown, reason: Evicti
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
export interface ICacheEntry$instance extends IDisposable {
|
|
46
|
+
readonly __tsonic_iface_Microsoft_Extensions_Caching_Memory_ICacheEntry: never;
|
|
47
|
+
|
|
46
48
|
readonly Key: unknown;
|
|
47
49
|
get Value(): unknown | undefined;
|
|
48
50
|
set Value(value: unknown | undefined);
|
|
49
|
-
AbsoluteExpiration:
|
|
50
|
-
AbsoluteExpirationRelativeToNow:
|
|
51
|
-
SlidingExpiration:
|
|
52
|
-
readonly ExpirationTokens:
|
|
53
|
-
readonly PostEvictionCallbacks:
|
|
51
|
+
AbsoluteExpiration: Nullable_1<DateTimeOffset>;
|
|
52
|
+
AbsoluteExpirationRelativeToNow: Nullable_1<TimeSpan>;
|
|
53
|
+
SlidingExpiration: Nullable_1<TimeSpan>;
|
|
54
|
+
readonly ExpirationTokens: IList_1<IChangeToken>;
|
|
55
|
+
readonly PostEvictionCallbacks: IList_1<PostEvictionCallbackRegistration>;
|
|
54
56
|
Priority: CacheItemPriority;
|
|
55
|
-
Size:
|
|
57
|
+
Size: Nullable_1<System_Internal.Int64>;
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
|
|
61
|
+
export interface ICacheEntry$instance extends System_Internal.IDisposable {}
|
|
62
|
+
|
|
59
63
|
export type ICacheEntry = ICacheEntry$instance;
|
|
60
64
|
|
|
61
65
|
export interface IMemoryCache$instance extends IDisposable {
|
|
66
|
+
readonly __tsonic_iface_Microsoft_Extensions_Caching_Memory_IMemoryCache: never;
|
|
67
|
+
|
|
62
68
|
CreateEntry(key: unknown): ICacheEntry;
|
|
63
69
|
GetCurrentStatistics(): MemoryCacheStatistics | undefined;
|
|
64
70
|
Remove(key: unknown): void;
|
|
@@ -66,11 +72,18 @@ export interface IMemoryCache$instance extends IDisposable {
|
|
|
66
72
|
}
|
|
67
73
|
|
|
68
74
|
|
|
75
|
+
export interface IMemoryCache$instance extends System_Internal.IDisposable {}
|
|
76
|
+
|
|
69
77
|
export type IMemoryCache = IMemoryCache$instance;
|
|
70
78
|
|
|
71
79
|
export interface MemoryCache$instance {
|
|
80
|
+
readonly __tsonic_type_Microsoft_Extensions_Caching_Memory_MemoryCache: never;
|
|
81
|
+
|
|
82
|
+
readonly __tsonic_iface_Microsoft_Extensions_Caching_Memory_IMemoryCache: never;
|
|
83
|
+
readonly __tsonic_iface_System_IDisposable: never;
|
|
84
|
+
|
|
72
85
|
readonly Count: int;
|
|
73
|
-
readonly Keys:
|
|
86
|
+
readonly Keys: IEnumerable_1<unknown>;
|
|
74
87
|
Clear(): void;
|
|
75
88
|
Compact(percentage: double): void;
|
|
76
89
|
CreateEntry(key: unknown): ICacheEntry;
|
|
@@ -80,8 +93,8 @@ export interface MemoryCache$instance {
|
|
|
80
93
|
GetCurrentStatistics(): MemoryCacheStatistics | undefined;
|
|
81
94
|
Remove(key: unknown): void;
|
|
82
95
|
TryGetValue(key: unknown, result: unknown): boolean;
|
|
83
|
-
TryGetValue(key:
|
|
84
|
-
TryGetValue<TItem>(key:
|
|
96
|
+
TryGetValue(key: ReadOnlySpan_1<System_Internal.Char>, value: unknown): boolean;
|
|
97
|
+
TryGetValue<TItem>(key: ReadOnlySpan_1<System_Internal.Char>, value: TItem): boolean;
|
|
85
98
|
}
|
|
86
99
|
|
|
87
100
|
|
|
@@ -99,13 +112,15 @@ export type MemoryCache = MemoryCache$instance & __MemoryCache$views;
|
|
|
99
112
|
|
|
100
113
|
|
|
101
114
|
export interface MemoryCacheEntryOptions$instance {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
115
|
+
readonly __tsonic_type_Microsoft_Extensions_Caching_Memory_MemoryCacheEntryOptions: never;
|
|
116
|
+
|
|
117
|
+
AbsoluteExpiration: Nullable_1<DateTimeOffset>;
|
|
118
|
+
AbsoluteExpirationRelativeToNow: Nullable_1<TimeSpan>;
|
|
119
|
+
readonly ExpirationTokens: IList_1<IChangeToken>;
|
|
120
|
+
readonly PostEvictionCallbacks: IList_1<PostEvictionCallbackRegistration>;
|
|
106
121
|
Priority: CacheItemPriority;
|
|
107
|
-
Size:
|
|
108
|
-
SlidingExpiration:
|
|
122
|
+
Size: Nullable_1<System_Internal.Int64>;
|
|
123
|
+
SlidingExpiration: Nullable_1<TimeSpan>;
|
|
109
124
|
}
|
|
110
125
|
|
|
111
126
|
|
|
@@ -117,12 +132,16 @@ export const MemoryCacheEntryOptions: {
|
|
|
117
132
|
export type MemoryCacheEntryOptions = MemoryCacheEntryOptions$instance;
|
|
118
133
|
|
|
119
134
|
export interface MemoryCacheOptions$instance {
|
|
135
|
+
readonly __tsonic_type_Microsoft_Extensions_Caching_Memory_MemoryCacheOptions: never;
|
|
136
|
+
|
|
137
|
+
readonly __tsonic_iface_Microsoft_Extensions_Options_IOptions_1: never;
|
|
138
|
+
|
|
120
139
|
get Clock(): ISystemClock | undefined;
|
|
121
140
|
set Clock(value: ISystemClock | undefined);
|
|
122
141
|
CompactionPercentage: double;
|
|
123
142
|
CompactOnMemoryPressure: boolean;
|
|
124
143
|
ExpirationScanFrequency: TimeSpan;
|
|
125
|
-
SizeLimit:
|
|
144
|
+
SizeLimit: Nullable_1<System_Internal.Int64>;
|
|
126
145
|
TrackLinkedCacheEntries: boolean;
|
|
127
146
|
TrackStatistics: boolean;
|
|
128
147
|
}
|
|
@@ -137,14 +156,14 @@ export interface __MemoryCacheOptions$views {
|
|
|
137
156
|
As_IOptions_1(): Microsoft_Extensions_Options_Internal.IOptions_1$instance<MemoryCacheOptions>;
|
|
138
157
|
}
|
|
139
158
|
|
|
140
|
-
export interface MemoryCacheOptions$instance extends Microsoft_Extensions_Options_Internal.IOptions_1$instance<MemoryCacheOptions> {}
|
|
141
|
-
|
|
142
159
|
export type MemoryCacheOptions = MemoryCacheOptions$instance & __MemoryCacheOptions$views;
|
|
143
160
|
|
|
144
161
|
|
|
145
162
|
export interface MemoryCacheStatistics$instance {
|
|
163
|
+
readonly __tsonic_type_Microsoft_Extensions_Caching_Memory_MemoryCacheStatistics: never;
|
|
164
|
+
|
|
146
165
|
CurrentEntryCount: long;
|
|
147
|
-
CurrentEstimatedSize:
|
|
166
|
+
CurrentEstimatedSize: Nullable_1<System_Internal.Int64>;
|
|
148
167
|
TotalHits: long;
|
|
149
168
|
TotalMisses: long;
|
|
150
169
|
}
|
|
@@ -158,6 +177,10 @@ export const MemoryCacheStatistics: {
|
|
|
158
177
|
export type MemoryCacheStatistics = MemoryCacheStatistics$instance;
|
|
159
178
|
|
|
160
179
|
export interface MemoryDistributedCacheOptions$instance extends MemoryCacheOptions$instance {
|
|
180
|
+
readonly __tsonic_type_Microsoft_Extensions_Caching_Memory_MemoryDistributedCacheOptions: never;
|
|
181
|
+
|
|
182
|
+
readonly __tsonic_iface_Microsoft_Extensions_Options_IOptions_1: never;
|
|
183
|
+
|
|
161
184
|
}
|
|
162
185
|
|
|
163
186
|
|
|
@@ -170,12 +193,12 @@ export interface __MemoryDistributedCacheOptions$views {
|
|
|
170
193
|
As_IOptions_1(): Microsoft_Extensions_Options_Internal.IOptions_1$instance<MemoryCacheOptions>;
|
|
171
194
|
}
|
|
172
195
|
|
|
173
|
-
export interface MemoryDistributedCacheOptions$instance extends Microsoft_Extensions_Options_Internal.IOptions_1$instance<MemoryCacheOptions> {}
|
|
174
|
-
|
|
175
196
|
export type MemoryDistributedCacheOptions = MemoryDistributedCacheOptions$instance & __MemoryDistributedCacheOptions$views;
|
|
176
197
|
|
|
177
198
|
|
|
178
199
|
export interface PostEvictionCallbackRegistration$instance {
|
|
200
|
+
readonly __tsonic_type_Microsoft_Extensions_Caching_Memory_PostEvictionCallbackRegistration: never;
|
|
201
|
+
|
|
179
202
|
get EvictionCallback(): PostEvictionDelegate | undefined;
|
|
180
203
|
set EvictionCallback(value: PostEvictionDelegate | undefined);
|
|
181
204
|
get State(): unknown | undefined;
|
|
@@ -209,10 +232,10 @@ export type CacheEntryExtensions = CacheEntryExtensions$instance;
|
|
|
209
232
|
export abstract class CacheExtensions$instance {
|
|
210
233
|
static Get(cache: IMemoryCache, key: unknown): unknown | undefined;
|
|
211
234
|
static Get<TItem>(cache: IMemoryCache, key: unknown): TItem | undefined;
|
|
212
|
-
static GetOrCreate<TItem>(cache: IMemoryCache, key: unknown, factory:
|
|
213
|
-
static GetOrCreate<TItem>(cache: IMemoryCache, key: unknown, factory:
|
|
214
|
-
static GetOrCreateAsync<TItem>(cache: IMemoryCache, key: unknown, factory:
|
|
215
|
-
static GetOrCreateAsync<TItem>(cache: IMemoryCache, key: unknown, factory:
|
|
235
|
+
static GetOrCreate<TItem>(cache: IMemoryCache, key: unknown, factory: Func_2<ICacheEntry, TItem>, createOptions: MemoryCacheEntryOptions): TItem | undefined;
|
|
236
|
+
static GetOrCreate<TItem>(cache: IMemoryCache, key: unknown, factory: Func_2<ICacheEntry, TItem>): TItem | undefined;
|
|
237
|
+
static GetOrCreateAsync<TItem>(cache: IMemoryCache, key: unknown, factory: Func_2<ICacheEntry, Task_1<TItem>>, createOptions: MemoryCacheEntryOptions): Task_1<TItem | undefined>;
|
|
238
|
+
static GetOrCreateAsync<TItem>(cache: IMemoryCache, key: unknown, factory: Func_2<ICacheEntry, Task_1<TItem>>): Task_1<TItem | undefined>;
|
|
216
239
|
static Set<TItem>(cache: IMemoryCache, key: unknown, value: TItem, options: MemoryCacheEntryOptions): TItem;
|
|
217
240
|
static Set<TItem>(cache: IMemoryCache, key: unknown, value: TItem, expirationToken: IChangeToken): TItem;
|
|
218
241
|
static Set<TItem>(cache: IMemoryCache, key: unknown, value: TItem, absoluteExpiration: DateTimeOffset): TItem;
|