@tsonic/microsoft-extensions 10.0.5 → 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 +21 -19
- package/Microsoft.Extensions.Caching.Hybrid/internal/index.d.ts +25 -21
- package/Microsoft.Extensions.Caching.Memory/internal/index.d.ts +39 -31
- package/Microsoft.Extensions.Configuration/internal/index.d.ts +92 -76
- package/Microsoft.Extensions.Configuration.CommandLine/internal/index.d.ts +13 -11
- package/Microsoft.Extensions.Configuration.EnvironmentVariables/internal/index.d.ts +9 -7
- package/Microsoft.Extensions.Configuration.Ini/internal/index.d.ts +16 -10
- package/Microsoft.Extensions.Configuration.Json/internal/index.d.ts +15 -9
- package/Microsoft.Extensions.Configuration.KeyPerFile/internal/index.d.ts +11 -11
- package/Microsoft.Extensions.Configuration.Memory/internal/index.d.ts +15 -15
- package/Microsoft.Extensions.Configuration.UserSecrets/internal/index.d.ts +6 -2
- package/Microsoft.Extensions.Configuration.Xml/internal/index.d.ts +19 -11
- package/Microsoft.Extensions.DependencyInjection/internal/index.d.ts +127 -115
- package/Microsoft.Extensions.DependencyInjection.Extensions/internal/index.d.ts +18 -18
- package/Microsoft.Extensions.Diagnostics.HealthChecks/internal/index.d.ts +47 -31
- package/Microsoft.Extensions.Diagnostics.Metrics/internal/index.d.ts +25 -19
- package/Microsoft.Extensions.Diagnostics.Metrics.Configuration/internal/index.d.ts +1 -1
- package/Microsoft.Extensions.FileProviders/internal/index.d.ts +39 -39
- package/Microsoft.Extensions.FileProviders.Composite/internal/index.d.ts +12 -12
- package/Microsoft.Extensions.FileProviders.Embedded/internal/index.d.ts +7 -7
- package/Microsoft.Extensions.FileProviders.Internal/internal/index.d.ts +11 -11
- package/Microsoft.Extensions.FileProviders.Physical/internal/index.d.ts +21 -15
- package/Microsoft.Extensions.FileSystemGlobbing/internal/index.d.ts +21 -13
- package/Microsoft.Extensions.FileSystemGlobbing.Abstractions/internal/index.d.ts +16 -6
- package/Microsoft.Extensions.FileSystemGlobbing.Internal/internal/index.d.ts +14 -10
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PathSegments/internal/index.d.ts +20 -20
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.PatternContexts/internal/index.d.ts +33 -15
- package/Microsoft.Extensions.FileSystemGlobbing.Internal.Patterns/internal/index.d.ts +4 -2
- package/Microsoft.Extensions.Hosting/internal/index.d.ts +53 -39
- package/Microsoft.Extensions.Hosting.Internal/internal/index.d.ts +13 -13
- package/Microsoft.Extensions.Http/internal/index.d.ts +14 -10
- package/Microsoft.Extensions.Http.Logging/internal/index.d.ts +13 -9
- package/Microsoft.Extensions.Internal/internal/index.d.ts +5 -5
- package/Microsoft.Extensions.Localization/internal/index.d.ts +31 -19
- package/Microsoft.Extensions.Logging/internal/index.d.ts +80 -66
- package/Microsoft.Extensions.Logging.Abstractions/internal/index.d.ts +28 -22
- package/Microsoft.Extensions.Logging.Configuration/internal/index.d.ts +4 -2
- package/Microsoft.Extensions.Logging.Console/internal/index.d.ts +24 -10
- package/Microsoft.Extensions.Logging.Debug/internal/index.d.ts +5 -5
- package/Microsoft.Extensions.Logging.EventLog/internal/index.d.ts +9 -7
- package/Microsoft.Extensions.Logging.EventSource/internal/index.d.ts +9 -7
- package/Microsoft.Extensions.Logging.TraceSource/internal/index.d.ts +6 -6
- package/Microsoft.Extensions.ObjectPool/internal/index.d.ts +23 -7
- package/Microsoft.Extensions.Options/internal/index.d.ts +168 -128
- package/Microsoft.Extensions.Primitives/internal/index.d.ts +38 -22
- package/Microsoft.Extensions.Validation/internal/index.d.ts +31 -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 +24 -10
- package/System.Diagnostics.Eventing.Reader/internal/index.d.ts +120 -70
- package/System.Net.Http/internal/index.d.ts +3 -3
- package/System.Security.Cryptography/internal/index.d.ts +11 -5
- package/System.Security.Cryptography.Pkcs/internal/index.d.ts +147 -69
- package/System.Security.Cryptography.Xml/internal/index.d.ts +98 -16
- package/__internal/extensions/index.d.ts +614 -505
- package/package.json +3 -3
|
@@ -9,25 +9,25 @@ 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
19
|
readonly __tsonic_iface_Microsoft_Extensions_Caching_Distributed_IBufferDistributedCache: never;
|
|
20
20
|
|
|
21
21
|
Get(key: string): byte[] | undefined;
|
|
22
|
-
GetAsync(key: string, token?: CancellationToken):
|
|
22
|
+
GetAsync(key: string, token?: CancellationToken): Task_1<byte[] | undefined>;
|
|
23
23
|
Refresh(key: string): void;
|
|
24
24
|
RefreshAsync(key: string, token?: CancellationToken): Task;
|
|
25
|
-
Set(key: string, value:
|
|
25
|
+
Set(key: string, value: ReadOnlySequence_1<System_Internal.Byte>, options: DistributedCacheEntryOptions): void;
|
|
26
26
|
Set(key: string, value: byte[], options: DistributedCacheEntryOptions): void;
|
|
27
|
-
SetAsync(key: string, value:
|
|
27
|
+
SetAsync(key: string, value: ReadOnlySequence_1<System_Internal.Byte>, options: DistributedCacheEntryOptions, token?: CancellationToken): ValueTask;
|
|
28
28
|
SetAsync(key: string, value: byte[], options: DistributedCacheEntryOptions, token?: CancellationToken): Task;
|
|
29
|
-
TryGet(key: string, destination:
|
|
30
|
-
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>;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
|
|
@@ -37,7 +37,7 @@ export interface IDistributedCache$instance {
|
|
|
37
37
|
readonly __tsonic_iface_Microsoft_Extensions_Caching_Distributed_IDistributedCache: never;
|
|
38
38
|
|
|
39
39
|
Get(key: string): byte[] | undefined;
|
|
40
|
-
GetAsync(key: string, token?: CancellationToken):
|
|
40
|
+
GetAsync(key: string, token?: CancellationToken): Task_1<byte[] | undefined>;
|
|
41
41
|
Refresh(key: string): void;
|
|
42
42
|
RefreshAsync(key: string, token?: CancellationToken): Task;
|
|
43
43
|
Set(key: string, value: byte[], options: DistributedCacheEntryOptions): void;
|
|
@@ -48,9 +48,11 @@ export interface IDistributedCache$instance {
|
|
|
48
48
|
export type IDistributedCache = IDistributedCache$instance;
|
|
49
49
|
|
|
50
50
|
export interface DistributedCacheEntryOptions$instance {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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>;
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
|
|
@@ -61,11 +63,13 @@ export const DistributedCacheEntryOptions: {
|
|
|
61
63
|
|
|
62
64
|
export type DistributedCacheEntryOptions = DistributedCacheEntryOptions$instance;
|
|
63
65
|
|
|
64
|
-
export interface MemoryDistributedCache$instance {
|
|
66
|
+
export interface MemoryDistributedCache$instance extends IDistributedCache$instance {
|
|
67
|
+
readonly __tsonic_type_Microsoft_Extensions_Caching_Distributed_MemoryDistributedCache: never;
|
|
68
|
+
|
|
65
69
|
readonly __tsonic_iface_Microsoft_Extensions_Caching_Distributed_IDistributedCache: never;
|
|
66
70
|
|
|
67
71
|
Get(key: string): byte[] | undefined;
|
|
68
|
-
GetAsync(key: string, token?: CancellationToken):
|
|
72
|
+
GetAsync(key: string, token?: CancellationToken): Task_1<byte[] | undefined>;
|
|
69
73
|
Refresh(key: string): void;
|
|
70
74
|
RefreshAsync(key: string, token?: CancellationToken): Task;
|
|
71
75
|
Remove(key: string): void;
|
|
@@ -85,8 +89,6 @@ export interface __MemoryDistributedCache$views {
|
|
|
85
89
|
As_IDistributedCache(): IDistributedCache$instance;
|
|
86
90
|
}
|
|
87
91
|
|
|
88
|
-
export interface MemoryDistributedCache$instance extends IDistributedCache$instance {}
|
|
89
|
-
|
|
90
92
|
export type MemoryDistributedCache = MemoryDistributedCache$instance & __MemoryDistributedCache$views;
|
|
91
93
|
|
|
92
94
|
|
|
@@ -101,7 +103,7 @@ export type DistributedCacheEntryExtensions = DistributedCacheEntryExtensions$in
|
|
|
101
103
|
|
|
102
104
|
export abstract class DistributedCacheExtensions$instance {
|
|
103
105
|
static GetString(cache: IDistributedCache, key: string): string | undefined;
|
|
104
|
-
static GetStringAsync(cache: IDistributedCache, key: string, token?: CancellationToken):
|
|
106
|
+
static GetStringAsync(cache: IDistributedCache, key: string, token?: CancellationToken): Task_1<string | undefined>;
|
|
105
107
|
static Set(cache: IDistributedCache, key: string, value: byte[]): void;
|
|
106
108
|
static SetAsync(cache: IDistributedCache, key: string, value: byte[], token?: CancellationToken): Task;
|
|
107
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,
|
|
@@ -33,8 +33,8 @@ export enum HybridCacheEntryFlags {
|
|
|
33
33
|
export interface IHybridCacheSerializer_1$instance<T> {
|
|
34
34
|
readonly __tsonic_iface_Microsoft_Extensions_Caching_Hybrid_IHybridCacheSerializer_1: never;
|
|
35
35
|
|
|
36
|
-
Deserialize(source:
|
|
37
|
-
Serialize(value: T, target:
|
|
36
|
+
Deserialize(source: ReadOnlySequence_1<System_Internal.Byte>): T;
|
|
37
|
+
Serialize(value: T, target: IBufferWriter_1<System_Internal.Byte>): void;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
|
|
@@ -50,17 +50,19 @@ export interface IHybridCacheSerializerFactory$instance {
|
|
|
50
50
|
export type IHybridCacheSerializerFactory = IHybridCacheSerializerFactory$instance;
|
|
51
51
|
|
|
52
52
|
export interface HybridCache$instance {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
GetOrCreateAsync<T>(key:
|
|
56
|
-
GetOrCreateAsync<
|
|
57
|
-
GetOrCreateAsync<T>(key:
|
|
58
|
-
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>;
|
|
59
61
|
RemoveAsync(key: string, cancellationToken?: CancellationToken): ValueTask;
|
|
60
|
-
RemoveAsync(keys:
|
|
61
|
-
RemoveByTagAsync(tags:
|
|
62
|
+
RemoveAsync(keys: IEnumerable_1<System_Internal.String>, cancellationToken?: CancellationToken): ValueTask;
|
|
63
|
+
RemoveByTagAsync(tags: IEnumerable_1<System_Internal.String>, cancellationToken?: CancellationToken): ValueTask;
|
|
62
64
|
RemoveByTagAsync(tag: string, cancellationToken?: CancellationToken): ValueTask;
|
|
63
|
-
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;
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
|
|
@@ -71,9 +73,11 @@ export const HybridCache: (abstract new() => HybridCache) & {
|
|
|
71
73
|
export type HybridCache = HybridCache$instance;
|
|
72
74
|
|
|
73
75
|
export interface HybridCacheEntryOptions$instance {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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>;
|
|
77
81
|
}
|
|
78
82
|
|
|
79
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,
|
|
@@ -48,13 +48,13 @@ export interface ICacheEntry$instance extends IDisposable {
|
|
|
48
48
|
readonly Key: unknown;
|
|
49
49
|
get Value(): unknown | undefined;
|
|
50
50
|
set Value(value: unknown | undefined);
|
|
51
|
-
AbsoluteExpiration:
|
|
52
|
-
AbsoluteExpirationRelativeToNow:
|
|
53
|
-
SlidingExpiration:
|
|
54
|
-
readonly ExpirationTokens:
|
|
55
|
-
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>;
|
|
56
56
|
Priority: CacheItemPriority;
|
|
57
|
-
Size:
|
|
57
|
+
Size: Nullable_1<System_Internal.Int64>;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
|
|
@@ -77,11 +77,13 @@ export interface IMemoryCache$instance extends System_Internal.IDisposable {}
|
|
|
77
77
|
export type IMemoryCache = IMemoryCache$instance;
|
|
78
78
|
|
|
79
79
|
export interface MemoryCache$instance {
|
|
80
|
+
readonly __tsonic_type_Microsoft_Extensions_Caching_Memory_MemoryCache: never;
|
|
81
|
+
|
|
80
82
|
readonly __tsonic_iface_Microsoft_Extensions_Caching_Memory_IMemoryCache: never;
|
|
81
83
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
82
84
|
|
|
83
85
|
readonly Count: int;
|
|
84
|
-
readonly Keys:
|
|
86
|
+
readonly Keys: IEnumerable_1<unknown>;
|
|
85
87
|
Clear(): void;
|
|
86
88
|
Compact(percentage: double): void;
|
|
87
89
|
CreateEntry(key: unknown): ICacheEntry;
|
|
@@ -91,8 +93,8 @@ export interface MemoryCache$instance {
|
|
|
91
93
|
GetCurrentStatistics(): MemoryCacheStatistics | undefined;
|
|
92
94
|
Remove(key: unknown): void;
|
|
93
95
|
TryGetValue(key: unknown, result: unknown): boolean;
|
|
94
|
-
TryGetValue(key:
|
|
95
|
-
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;
|
|
96
98
|
}
|
|
97
99
|
|
|
98
100
|
|
|
@@ -110,13 +112,15 @@ export type MemoryCache = MemoryCache$instance & __MemoryCache$views;
|
|
|
110
112
|
|
|
111
113
|
|
|
112
114
|
export interface MemoryCacheEntryOptions$instance {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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>;
|
|
117
121
|
Priority: CacheItemPriority;
|
|
118
|
-
Size:
|
|
119
|
-
SlidingExpiration:
|
|
122
|
+
Size: Nullable_1<System_Internal.Int64>;
|
|
123
|
+
SlidingExpiration: Nullable_1<TimeSpan>;
|
|
120
124
|
}
|
|
121
125
|
|
|
122
126
|
|
|
@@ -128,6 +132,8 @@ export const MemoryCacheEntryOptions: {
|
|
|
128
132
|
export type MemoryCacheEntryOptions = MemoryCacheEntryOptions$instance;
|
|
129
133
|
|
|
130
134
|
export interface MemoryCacheOptions$instance {
|
|
135
|
+
readonly __tsonic_type_Microsoft_Extensions_Caching_Memory_MemoryCacheOptions: never;
|
|
136
|
+
|
|
131
137
|
readonly __tsonic_iface_Microsoft_Extensions_Options_IOptions_1: never;
|
|
132
138
|
|
|
133
139
|
get Clock(): ISystemClock | undefined;
|
|
@@ -135,7 +141,7 @@ export interface MemoryCacheOptions$instance {
|
|
|
135
141
|
CompactionPercentage: double;
|
|
136
142
|
CompactOnMemoryPressure: boolean;
|
|
137
143
|
ExpirationScanFrequency: TimeSpan;
|
|
138
|
-
SizeLimit:
|
|
144
|
+
SizeLimit: Nullable_1<System_Internal.Int64>;
|
|
139
145
|
TrackLinkedCacheEntries: boolean;
|
|
140
146
|
TrackStatistics: boolean;
|
|
141
147
|
}
|
|
@@ -150,14 +156,14 @@ export interface __MemoryCacheOptions$views {
|
|
|
150
156
|
As_IOptions_1(): Microsoft_Extensions_Options_Internal.IOptions_1$instance<MemoryCacheOptions>;
|
|
151
157
|
}
|
|
152
158
|
|
|
153
|
-
export interface MemoryCacheOptions$instance extends Microsoft_Extensions_Options_Internal.IOptions_1$instance<MemoryCacheOptions> {}
|
|
154
|
-
|
|
155
159
|
export type MemoryCacheOptions = MemoryCacheOptions$instance & __MemoryCacheOptions$views;
|
|
156
160
|
|
|
157
161
|
|
|
158
162
|
export interface MemoryCacheStatistics$instance {
|
|
163
|
+
readonly __tsonic_type_Microsoft_Extensions_Caching_Memory_MemoryCacheStatistics: never;
|
|
164
|
+
|
|
159
165
|
CurrentEntryCount: long;
|
|
160
|
-
CurrentEstimatedSize:
|
|
166
|
+
CurrentEstimatedSize: Nullable_1<System_Internal.Int64>;
|
|
161
167
|
TotalHits: long;
|
|
162
168
|
TotalMisses: long;
|
|
163
169
|
}
|
|
@@ -171,6 +177,8 @@ export const MemoryCacheStatistics: {
|
|
|
171
177
|
export type MemoryCacheStatistics = MemoryCacheStatistics$instance;
|
|
172
178
|
|
|
173
179
|
export interface MemoryDistributedCacheOptions$instance extends MemoryCacheOptions$instance {
|
|
180
|
+
readonly __tsonic_type_Microsoft_Extensions_Caching_Memory_MemoryDistributedCacheOptions: never;
|
|
181
|
+
|
|
174
182
|
readonly __tsonic_iface_Microsoft_Extensions_Options_IOptions_1: never;
|
|
175
183
|
|
|
176
184
|
}
|
|
@@ -185,12 +193,12 @@ export interface __MemoryDistributedCacheOptions$views {
|
|
|
185
193
|
As_IOptions_1(): Microsoft_Extensions_Options_Internal.IOptions_1$instance<MemoryCacheOptions>;
|
|
186
194
|
}
|
|
187
195
|
|
|
188
|
-
export interface MemoryDistributedCacheOptions$instance extends Microsoft_Extensions_Options_Internal.IOptions_1$instance<MemoryCacheOptions> {}
|
|
189
|
-
|
|
190
196
|
export type MemoryDistributedCacheOptions = MemoryDistributedCacheOptions$instance & __MemoryDistributedCacheOptions$views;
|
|
191
197
|
|
|
192
198
|
|
|
193
199
|
export interface PostEvictionCallbackRegistration$instance {
|
|
200
|
+
readonly __tsonic_type_Microsoft_Extensions_Caching_Memory_PostEvictionCallbackRegistration: never;
|
|
201
|
+
|
|
194
202
|
get EvictionCallback(): PostEvictionDelegate | undefined;
|
|
195
203
|
set EvictionCallback(value: PostEvictionDelegate | undefined);
|
|
196
204
|
get State(): unknown | undefined;
|
|
@@ -224,10 +232,10 @@ export type CacheEntryExtensions = CacheEntryExtensions$instance;
|
|
|
224
232
|
export abstract class CacheExtensions$instance {
|
|
225
233
|
static Get(cache: IMemoryCache, key: unknown): unknown | undefined;
|
|
226
234
|
static Get<TItem>(cache: IMemoryCache, key: unknown): TItem | undefined;
|
|
227
|
-
static GetOrCreate<TItem>(cache: IMemoryCache, key: unknown, factory:
|
|
228
|
-
static GetOrCreate<TItem>(cache: IMemoryCache, key: unknown, factory:
|
|
229
|
-
static GetOrCreateAsync<TItem>(cache: IMemoryCache, key: unknown, factory:
|
|
230
|
-
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>;
|
|
231
239
|
static Set<TItem>(cache: IMemoryCache, key: unknown, value: TItem, options: MemoryCacheEntryOptions): TItem;
|
|
232
240
|
static Set<TItem>(cache: IMemoryCache, key: unknown, value: TItem, expirationToken: IChangeToken): TItem;
|
|
233
241
|
static Set<TItem>(cache: IMemoryCache, key: unknown, value: TItem, absoluteExpiration: DateTimeOffset): TItem;
|