我滴个乖乖

This commit is contained in:
zel
2025-02-20 15:20:28 +08:00
parent 4b54cca70b
commit 485cfcd6f2
2343 changed files with 495732 additions and 1022 deletions

View File

@@ -0,0 +1,7 @@
namespace ZelWiki.Caching
{
public interface IWikiCacheKey
{
public string Key { get; set; }
}
}

View File

@@ -0,0 +1,186 @@
using System.Collections.Specialized;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.Caching;
namespace ZelWiki.Caching
{
public class WikiCache
{
public enum Category
{
User,
Page,
Search,
Emoji,
Configuration
}
public static int DefaultCacheSeconds { get; set; }
private static MemoryCache? _memCache;
public static ulong CachePuts { get; set; }
public static ulong CacheGets { get; set; }
public static ulong CacheHits { get; set; }
public static ulong CacheMisses { get; set; }
public static int CacheItemCount => MemCache.Count();
public static double CacheMemoryLimit => MemCache.CacheMemoryLimit;
public static MemoryCache MemCache => _memCache ?? throw new Exception("Cache has not been initialized.");
public static void Initialize(int cacheMemoryLimitMB, int defaultCacheSeconds)
{
DefaultCacheSeconds = defaultCacheSeconds;
var config = new NameValueCollection
{
//config.Add("pollingInterval", "00:05:00");
//config.Add("physicalMemoryLimitPercentage", "0");
{ "CacheMemoryLimitMegabytes", cacheMemoryLimitMB.ToString() }
};
_memCache?.Dispose();
_memCache = new MemoryCache("TightWikiCache", config);
}
/// <summary>
/// Gets an item from the cache.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="cacheKey"></param>
/// <returns></returns>
public static T? Get<T>(IWikiCacheKey cacheKey)
{
CacheGets++;
var result = (T)MemCache.Get(cacheKey.Key);
if (result == null)
{
CacheMisses++;
}
CacheHits++;
return result;
}
/// <summary>
/// Determines if the cache contains a given key.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="cacheKey"></param>
/// <returns></returns>
public static bool Contains(IWikiCacheKey cacheKey)
{
CacheGets++;
if (MemCache.Contains(cacheKey.Key))
{
CacheHits++;
return true;
}
CacheMisses++;
return false;
}
/// <summary>
/// Gets an item from the cache.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="cacheKey"></param>
/// <returns></returns>
public static bool TryGet<T>(IWikiCacheKey cacheKey, [NotNullWhen(true)] out T result)
{
CacheGets++;
if ((result = (T)MemCache.Get(cacheKey.Key)) == null)
{
CacheMisses++;
return false;
}
CacheHits++;
return true;
}
/// <summary>
/// Adds an item to the cache. If the item is already in the cache, this will reset its expiration.
/// </summary>
/// <param name="cacheKey"></param>
/// <param name="value"></param>
/// <param name="seconds"></param>
public static void Put(IWikiCacheKey cacheKey, object value, int? seconds = null)
{
CachePuts++;
seconds ??= DefaultCacheSeconds;
if (seconds <= 0)
{
return;
}
var policy = new CacheItemPolicy()
{
AbsoluteExpiration = DateTimeOffset.Now.AddSeconds(seconds ?? DefaultCacheSeconds)
};
MemCache.Add(cacheKey.Key, value, policy);
}
public static void Put(IWikiCacheKey cacheKey, object value, CacheItemPolicy policy)
{
CachePuts++;
MemCache.Add(cacheKey.Key, value, policy);
}
/// <summary>
/// Removes all entries from the cache.
/// </summary>
public static void Clear()
{
if (_memCache == null)
{
return;
}
var items = MemCache.ToList();
foreach (var a in items)
{
MemCache.Remove(a.Key);
}
}
/// <summary>
/// Removes cache entries that begin with the given cache key.
/// </summary>
/// <param name="category"></param>
public static void ClearCategory(WikiCacheKey cacheKey)
{
var keys = new List<string>();
foreach (var item in MemCache)
{
if (item.Key.StartsWith(cacheKey.Key))
{
keys.Add(item.Key);
}
}
keys.ForEach(o => MemCache.Remove(o));
}
/// <summary>
/// Removes cache entries in a given category.
/// </summary>
/// <param name="category"></param>
public static void ClearCategory(Category category)
{
var cacheKey = WikiCacheKey.Build(category);
var keys = new List<string>();
foreach (var item in MemCache)
{
if (item.Key.StartsWith(cacheKey.Key))
{
keys.Add(item.Key);
}
}
keys.ForEach(o => MemCache.Remove(o));
}
}
}

View File

@@ -0,0 +1,19 @@
using static ZelWiki.Caching.WikiCache;
namespace ZelWiki.Caching
{
/// <summary>
/// Contains a verbatim cache key.
/// </summary>
/// <param name="key"></param>
public class WikiCacheKey(string key) : IWikiCacheKey
{
public string Key { get; set; } = key;
public static WikiCacheKey Build(WikiCache.Category category, object?[] segments)
=> new($"[{category}]:[{string.Join("]:[", segments)}]");
public static WikiCacheKey Build(WikiCache.Category category)
=> new($"[{category}]");
}
}

View File

@@ -0,0 +1,26 @@
using System.Runtime.CompilerServices;
using static ZelWiki.Caching.WikiCache;
namespace ZelWiki.Caching
{
/// <summary>
/// Contains a verbatim cache key which also includes the calling function name.
/// </summary>
/// <param name="key"></param>
public class WikiCacheKeyFunction(string key) : IWikiCacheKey
{
public string Key { get; set; } = key;
/// <summary>
/// Builds a cache key which includes the calling function name.
/// </summary>
public static WikiCacheKeyFunction Build(WikiCache.Category category, object?[] segments, [CallerMemberName] string callingFunction = "")
=> new($"[{category}]:[{string.Join("]:[", segments)}]:[{callingFunction}]");
/// <summary>
/// Builds a cache key which includes the calling function name.
/// </summary>
public static WikiCacheKeyFunction Build(WikiCache.Category category, [CallerMemberName] string callingFunction = "")
=> new($"[{category}]:[{callingFunction}]");
}
}

View File

@@ -0,0 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Version>2.20.1</Version>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DebugSymbols>False</DebugSymbols>
<DebugType>None</DebugType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Runtime.Caching" Version="9.0.1" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,115 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v9.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v9.0": {
"TightWiki.Caching/2.20.1": {
"dependencies": {
"System.Runtime.Caching": "9.0.1"
},
"runtime": {
"TightWiki.Caching.dll": {}
}
},
"System.Configuration.ConfigurationManager/9.0.1": {
"dependencies": {
"System.Diagnostics.EventLog": "9.0.1",
"System.Security.Cryptography.ProtectedData": "9.0.1"
},
"runtime": {
"lib/net9.0/System.Configuration.ConfigurationManager.dll": {
"assemblyVersion": "9.0.0.0",
"fileVersion": "9.0.124.61010"
}
}
},
"System.Diagnostics.EventLog/9.0.1": {
"runtime": {
"lib/net9.0/System.Diagnostics.EventLog.dll": {
"assemblyVersion": "9.0.0.0",
"fileVersion": "9.0.124.61010"
}
},
"runtimeTargets": {
"runtimes/win/lib/net9.0/System.Diagnostics.EventLog.Messages.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "9.0.0.0",
"fileVersion": "0.0.0.0"
},
"runtimes/win/lib/net9.0/System.Diagnostics.EventLog.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "9.0.0.0",
"fileVersion": "9.0.124.61010"
}
}
},
"System.Runtime.Caching/9.0.1": {
"dependencies": {
"System.Configuration.ConfigurationManager": "9.0.1"
},
"runtime": {
"lib/net9.0/System.Runtime.Caching.dll": {
"assemblyVersion": "9.0.0.1",
"fileVersion": "9.0.124.61010"
}
},
"runtimeTargets": {
"runtimes/win/lib/net9.0/System.Runtime.Caching.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "9.0.0.1",
"fileVersion": "9.0.124.61010"
}
}
},
"System.Security.Cryptography.ProtectedData/9.0.1": {
"runtime": {
"lib/net9.0/System.Security.Cryptography.ProtectedData.dll": {
"assemblyVersion": "9.0.0.0",
"fileVersion": "9.0.124.61010"
}
}
}
}
},
"libraries": {
"TightWiki.Caching/2.20.1": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"System.Configuration.ConfigurationManager/9.0.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-ntDQ+3A7vGq6jnv3KI8nv1Tfgmos9TG863xd/5tmms6LqrIxEze1RLuA3JB/AcpXMUSO70DXzXfPnJD2ZHFX0Q==",
"path": "system.configuration.configurationmanager/9.0.1",
"hashPath": "system.configuration.configurationmanager.9.0.1.nupkg.sha512"
},
"System.Diagnostics.EventLog/9.0.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-iVnDpgYJsRaRFnk77kcLA3+913WfWDtnAKrQl9tQ5ahqKANTaJKmQdsuPWWiAPWE9pk1Kj4Pg9JGXWfFYYyakQ==",
"path": "system.diagnostics.eventlog/9.0.1",
"hashPath": "system.diagnostics.eventlog.9.0.1.nupkg.sha512"
},
"System.Runtime.Caching/9.0.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-5E4yKPLeruveoh1EZKHl6f6jWXcd/a4tu+1IedG5ZndPPRAeAzFV4+ZagrcQMwz7xTFYOxC0zKM174nPGuTKoA==",
"path": "system.runtime.caching/9.0.1",
"hashPath": "system.runtime.caching.9.0.1.nupkg.sha512"
},
"System.Security.Cryptography.ProtectedData/9.0.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-u+4PH6GyDjEsWgcpKp1S/DiyxtGvazNPdaPFR6p6/qZr3TW+oZWvwfHO2H2CSpS4KGl2z2CBfU6eB38PsmoxtA==",
"path": "system.security.cryptography.protecteddata/9.0.1",
"hashPath": "system.security.cryptography.protecteddata.9.0.1.nupkg.sha512"
}
}
}

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,115 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v9.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v9.0": {
"ZelWiki.Caching/2.20.1": {
"dependencies": {
"System.Runtime.Caching": "9.0.1"
},
"runtime": {
"ZelWiki.Caching.dll": {}
}
},
"System.Configuration.ConfigurationManager/9.0.1": {
"dependencies": {
"System.Diagnostics.EventLog": "9.0.1",
"System.Security.Cryptography.ProtectedData": "9.0.1"
},
"runtime": {
"lib/net9.0/System.Configuration.ConfigurationManager.dll": {
"assemblyVersion": "9.0.0.0",
"fileVersion": "9.0.124.61010"
}
}
},
"System.Diagnostics.EventLog/9.0.1": {
"runtime": {
"lib/net9.0/System.Diagnostics.EventLog.dll": {
"assemblyVersion": "9.0.0.0",
"fileVersion": "9.0.124.61010"
}
},
"runtimeTargets": {
"runtimes/win/lib/net9.0/System.Diagnostics.EventLog.Messages.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "9.0.0.0",
"fileVersion": "0.0.0.0"
},
"runtimes/win/lib/net9.0/System.Diagnostics.EventLog.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "9.0.0.0",
"fileVersion": "9.0.124.61010"
}
}
},
"System.Runtime.Caching/9.0.1": {
"dependencies": {
"System.Configuration.ConfigurationManager": "9.0.1"
},
"runtime": {
"lib/net9.0/System.Runtime.Caching.dll": {
"assemblyVersion": "9.0.0.1",
"fileVersion": "9.0.124.61010"
}
},
"runtimeTargets": {
"runtimes/win/lib/net9.0/System.Runtime.Caching.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "9.0.0.1",
"fileVersion": "9.0.124.61010"
}
}
},
"System.Security.Cryptography.ProtectedData/9.0.1": {
"runtime": {
"lib/net9.0/System.Security.Cryptography.ProtectedData.dll": {
"assemblyVersion": "9.0.0.0",
"fileVersion": "9.0.124.61010"
}
}
}
}
},
"libraries": {
"ZelWiki.Caching/2.20.1": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"System.Configuration.ConfigurationManager/9.0.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-ntDQ+3A7vGq6jnv3KI8nv1Tfgmos9TG863xd/5tmms6LqrIxEze1RLuA3JB/AcpXMUSO70DXzXfPnJD2ZHFX0Q==",
"path": "system.configuration.configurationmanager/9.0.1",
"hashPath": "system.configuration.configurationmanager.9.0.1.nupkg.sha512"
},
"System.Diagnostics.EventLog/9.0.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-iVnDpgYJsRaRFnk77kcLA3+913WfWDtnAKrQl9tQ5ahqKANTaJKmQdsuPWWiAPWE9pk1Kj4Pg9JGXWfFYYyakQ==",
"path": "system.diagnostics.eventlog/9.0.1",
"hashPath": "system.diagnostics.eventlog.9.0.1.nupkg.sha512"
},
"System.Runtime.Caching/9.0.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-5E4yKPLeruveoh1EZKHl6f6jWXcd/a4tu+1IedG5ZndPPRAeAzFV4+ZagrcQMwz7xTFYOxC0zKM174nPGuTKoA==",
"path": "system.runtime.caching/9.0.1",
"hashPath": "system.runtime.caching.9.0.1.nupkg.sha512"
},
"System.Security.Cryptography.ProtectedData/9.0.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-u+4PH6GyDjEsWgcpKp1S/DiyxtGvazNPdaPFR6p6/qZr3TW+oZWvwfHO2H2CSpS4KGl2z2CBfU6eB38PsmoxtA==",
"path": "system.security.cryptography.protecteddata/9.0.1",
"hashPath": "system.security.cryptography.protecteddata.9.0.1.nupkg.sha512"
}
}
}

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]

View File

@@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("TightWiki.Caching")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.20.1.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("2.20.1+4b54cca70b03a58af51ef6debdd012251f258bbb")]
[assembly: System.Reflection.AssemblyProductAttribute("TightWiki.Caching")]
[assembly: System.Reflection.AssemblyTitleAttribute("TightWiki.Caching")]
[assembly: System.Reflection.AssemblyVersionAttribute("2.20.1.0")]
// 由 MSBuild WriteCodeFragment 类生成。

View File

@@ -0,0 +1 @@
b1c972b92b01913abcc399402e4071d587d49cd391ee286c63e2620d99bb818c

View File

@@ -0,0 +1,15 @@
is_global = true
build_property.TargetFramework = net9.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = TightWiki.Caching
build_property.ProjectDir = E:\HelloWord\nysj2\TightWiki.Caching\
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.EffectiveAnalysisLevelStyle = 9.0
build_property.EnableCodeStyleSeverity =

View File

@@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;

View File

@@ -0,0 +1 @@
da5781197eafd2e8b31f2ae079476891b8ad4cd0c510bfebdd2743a5cae24321

View File

@@ -0,0 +1,12 @@
E:\HelloWord\nysj2\TightWiki.Caching\bin\Debug\net9.0\TightWiki.Caching.deps.json
E:\HelloWord\nysj2\TightWiki.Caching\bin\Debug\net9.0\TightWiki.Caching.dll
E:\HelloWord\nysj2\TightWiki.Caching\bin\Debug\net9.0\TightWiki.Caching.pdb
E:\HelloWord\nysj2\TightWiki.Caching\obj\Debug\net9.0\TightWiki.Caching.csproj.AssemblyReference.cache
E:\HelloWord\nysj2\TightWiki.Caching\obj\Debug\net9.0\TightWiki.Caching.GeneratedMSBuildEditorConfig.editorconfig
E:\HelloWord\nysj2\TightWiki.Caching\obj\Debug\net9.0\TightWiki.Caching.AssemblyInfoInputs.cache
E:\HelloWord\nysj2\TightWiki.Caching\obj\Debug\net9.0\TightWiki.Caching.AssemblyInfo.cs
E:\HelloWord\nysj2\TightWiki.Caching\obj\Debug\net9.0\TightWiki.Caching.csproj.CoreCompileInputs.cache
E:\HelloWord\nysj2\TightWiki.Caching\obj\Debug\net9.0\TightWiki.Caching.dll
E:\HelloWord\nysj2\TightWiki.Caching\obj\Debug\net9.0\refint\TightWiki.Caching.dll
E:\HelloWord\nysj2\TightWiki.Caching\obj\Debug\net9.0\TightWiki.Caching.pdb
E:\HelloWord\nysj2\TightWiki.Caching\obj\Debug\net9.0\ref\TightWiki.Caching.dll

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("ZelWiki.Caching")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.20.1.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("2.20.1+4b54cca70b03a58af51ef6debdd012251f258bbb")]
[assembly: System.Reflection.AssemblyProductAttribute("ZelWiki.Caching")]
[assembly: System.Reflection.AssemblyTitleAttribute("ZelWiki.Caching")]
[assembly: System.Reflection.AssemblyVersionAttribute("2.20.1.0")]
// 由 MSBuild WriteCodeFragment 类生成。

View File

@@ -0,0 +1 @@
c1073d68c1984f1fda0c4bca52d3f9fb1d0fac2b5e60be2b312077c2f57bd8f7

View File

@@ -0,0 +1,15 @@
is_global = true
build_property.TargetFramework = net9.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = ZelWiki.Caching
build_property.ProjectDir = E:\HelloWord\nysj2\ZelWiki.Caching\
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.EffectiveAnalysisLevelStyle = 9.0
build_property.EnableCodeStyleSeverity =

View File

@@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;

View File

@@ -0,0 +1 @@
8970d39771dc2ad67ebf44a43db68a184809668f12fc71aec4056fa1f649a7af

View File

@@ -0,0 +1,12 @@
E:\HelloWord\nysj2\ZelWiki.Caching\bin\Debug\net9.0\ZelWiki.Caching.deps.json
E:\HelloWord\nysj2\ZelWiki.Caching\bin\Debug\net9.0\ZelWiki.Caching.dll
E:\HelloWord\nysj2\ZelWiki.Caching\bin\Debug\net9.0\ZelWiki.Caching.pdb
E:\HelloWord\nysj2\ZelWiki.Caching\obj\Debug\net9.0\ZelWiki.Caching.csproj.AssemblyReference.cache
E:\HelloWord\nysj2\ZelWiki.Caching\obj\Debug\net9.0\ZelWiki.Caching.GeneratedMSBuildEditorConfig.editorconfig
E:\HelloWord\nysj2\ZelWiki.Caching\obj\Debug\net9.0\ZelWiki.Caching.AssemblyInfoInputs.cache
E:\HelloWord\nysj2\ZelWiki.Caching\obj\Debug\net9.0\ZelWiki.Caching.AssemblyInfo.cs
E:\HelloWord\nysj2\ZelWiki.Caching\obj\Debug\net9.0\ZelWiki.Caching.csproj.CoreCompileInputs.cache
E:\HelloWord\nysj2\ZelWiki.Caching\obj\Debug\net9.0\ZelWiki.Caching.dll
E:\HelloWord\nysj2\ZelWiki.Caching\obj\Debug\net9.0\refint\ZelWiki.Caching.dll
E:\HelloWord\nysj2\ZelWiki.Caching\obj\Debug\net9.0\ZelWiki.Caching.pdb
E:\HelloWord\nysj2\ZelWiki.Caching\obj\Debug\net9.0\ref\ZelWiki.Caching.dll

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,79 @@
{
"format": 1,
"restore": {
"E:\\HelloWord\\nysj2\\TightWiki.Caching\\TightWiki.Caching.csproj": {}
},
"projects": {
"E:\\HelloWord\\nysj2\\TightWiki.Caching\\TightWiki.Caching.csproj": {
"version": "2.20.1",
"restore": {
"projectUniqueName": "E:\\HelloWord\\nysj2\\TightWiki.Caching\\TightWiki.Caching.csproj",
"projectName": "TightWiki.Caching",
"projectPath": "E:\\HelloWord\\nysj2\\TightWiki.Caching\\TightWiki.Caching.csproj",
"packagesPath": "C:\\Users\\Zel\\.nuget\\packages\\",
"outputPath": "E:\\HelloWord\\nysj2\\TightWiki.Caching\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\Zel\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net9.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net9.0": {
"targetAlias": "net9.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
},
"SdkAnalysisLevel": "9.0.100"
},
"frameworks": {
"net9.0": {
"targetAlias": "net9.0",
"dependencies": {
"System.Runtime.Caching": {
"target": "Package",
"version": "[9.0.1, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.102/PortableRuntimeIdentifierGraph.json"
}
}
}
}
}

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Zel\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.3</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\Zel\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

View File

@@ -0,0 +1,79 @@
{
"format": 1,
"restore": {
"E:\\HelloWord\\nysj2\\ZelWiki.Caching\\ZelWiki.Caching.csproj": {}
},
"projects": {
"E:\\HelloWord\\nysj2\\ZelWiki.Caching\\ZelWiki.Caching.csproj": {
"version": "2.20.1",
"restore": {
"projectUniqueName": "E:\\HelloWord\\nysj2\\ZelWiki.Caching\\ZelWiki.Caching.csproj",
"projectName": "ZelWiki.Caching",
"projectPath": "E:\\HelloWord\\nysj2\\ZelWiki.Caching\\ZelWiki.Caching.csproj",
"packagesPath": "C:\\Users\\Zel\\.nuget\\packages\\",
"outputPath": "E:\\HelloWord\\nysj2\\ZelWiki.Caching\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\Zel\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net9.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net9.0": {
"targetAlias": "net9.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
},
"SdkAnalysisLevel": "9.0.100"
},
"frameworks": {
"net9.0": {
"targetAlias": "net9.0",
"dependencies": {
"System.Runtime.Caching": {
"target": "Package",
"version": "[9.0.1, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.102/PortableRuntimeIdentifierGraph.json"
}
}
}
}
}

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Zel\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.3</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\Zel\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

View File

@@ -0,0 +1,307 @@
{
"version": 3,
"targets": {
"net9.0": {
"System.Configuration.ConfigurationManager/9.0.1": {
"type": "package",
"dependencies": {
"System.Diagnostics.EventLog": "9.0.1",
"System.Security.Cryptography.ProtectedData": "9.0.1"
},
"compile": {
"lib/net9.0/System.Configuration.ConfigurationManager.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/net9.0/System.Configuration.ConfigurationManager.dll": {
"related": ".xml"
}
},
"build": {
"buildTransitive/net8.0/_._": {}
}
},
"System.Diagnostics.EventLog/9.0.1": {
"type": "package",
"compile": {
"lib/net9.0/System.Diagnostics.EventLog.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/net9.0/System.Diagnostics.EventLog.dll": {
"related": ".xml"
}
},
"build": {
"buildTransitive/net8.0/_._": {}
},
"runtimeTargets": {
"runtimes/win/lib/net9.0/System.Diagnostics.EventLog.Messages.dll": {
"assetType": "runtime",
"rid": "win"
},
"runtimes/win/lib/net9.0/System.Diagnostics.EventLog.dll": {
"assetType": "runtime",
"rid": "win"
}
}
},
"System.Runtime.Caching/9.0.1": {
"type": "package",
"dependencies": {
"System.Configuration.ConfigurationManager": "9.0.1"
},
"compile": {
"lib/net9.0/System.Runtime.Caching.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/net9.0/System.Runtime.Caching.dll": {
"related": ".xml"
}
},
"build": {
"buildTransitive/net8.0/_._": {}
},
"runtimeTargets": {
"runtimes/win/lib/net9.0/System.Runtime.Caching.dll": {
"assetType": "runtime",
"rid": "win"
}
}
},
"System.Security.Cryptography.ProtectedData/9.0.1": {
"type": "package",
"compile": {
"lib/net9.0/System.Security.Cryptography.ProtectedData.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/net9.0/System.Security.Cryptography.ProtectedData.dll": {
"related": ".xml"
}
},
"build": {
"buildTransitive/net8.0/_._": {}
}
}
}
},
"libraries": {
"System.Configuration.ConfigurationManager/9.0.1": {
"sha512": "ntDQ+3A7vGq6jnv3KI8nv1Tfgmos9TG863xd/5tmms6LqrIxEze1RLuA3JB/AcpXMUSO70DXzXfPnJD2ZHFX0Q==",
"type": "package",
"path": "system.configuration.configurationmanager/9.0.1",
"files": [
".nupkg.metadata",
".signature.p7s",
"Icon.png",
"LICENSE.TXT",
"PACKAGE.md",
"THIRD-PARTY-NOTICES.TXT",
"buildTransitive/net461/System.Configuration.ConfigurationManager.targets",
"buildTransitive/net462/_._",
"buildTransitive/net8.0/_._",
"buildTransitive/netcoreapp2.0/System.Configuration.ConfigurationManager.targets",
"lib/net462/System.Configuration.ConfigurationManager.dll",
"lib/net462/System.Configuration.ConfigurationManager.xml",
"lib/net8.0/System.Configuration.ConfigurationManager.dll",
"lib/net8.0/System.Configuration.ConfigurationManager.xml",
"lib/net9.0/System.Configuration.ConfigurationManager.dll",
"lib/net9.0/System.Configuration.ConfigurationManager.xml",
"lib/netstandard2.0/System.Configuration.ConfigurationManager.dll",
"lib/netstandard2.0/System.Configuration.ConfigurationManager.xml",
"system.configuration.configurationmanager.9.0.1.nupkg.sha512",
"system.configuration.configurationmanager.nuspec",
"useSharedDesignerContext.txt"
]
},
"System.Diagnostics.EventLog/9.0.1": {
"sha512": "iVnDpgYJsRaRFnk77kcLA3+913WfWDtnAKrQl9tQ5ahqKANTaJKmQdsuPWWiAPWE9pk1Kj4Pg9JGXWfFYYyakQ==",
"type": "package",
"path": "system.diagnostics.eventlog/9.0.1",
"files": [
".nupkg.metadata",
".signature.p7s",
"Icon.png",
"LICENSE.TXT",
"PACKAGE.md",
"THIRD-PARTY-NOTICES.TXT",
"buildTransitive/net461/System.Diagnostics.EventLog.targets",
"buildTransitive/net462/_._",
"buildTransitive/net8.0/_._",
"buildTransitive/netcoreapp2.0/System.Diagnostics.EventLog.targets",
"lib/net462/System.Diagnostics.EventLog.dll",
"lib/net462/System.Diagnostics.EventLog.xml",
"lib/net8.0/System.Diagnostics.EventLog.dll",
"lib/net8.0/System.Diagnostics.EventLog.xml",
"lib/net9.0/System.Diagnostics.EventLog.dll",
"lib/net9.0/System.Diagnostics.EventLog.xml",
"lib/netstandard2.0/System.Diagnostics.EventLog.dll",
"lib/netstandard2.0/System.Diagnostics.EventLog.xml",
"runtimes/win/lib/net8.0/System.Diagnostics.EventLog.Messages.dll",
"runtimes/win/lib/net8.0/System.Diagnostics.EventLog.dll",
"runtimes/win/lib/net8.0/System.Diagnostics.EventLog.xml",
"runtimes/win/lib/net9.0/System.Diagnostics.EventLog.Messages.dll",
"runtimes/win/lib/net9.0/System.Diagnostics.EventLog.dll",
"runtimes/win/lib/net9.0/System.Diagnostics.EventLog.xml",
"system.diagnostics.eventlog.9.0.1.nupkg.sha512",
"system.diagnostics.eventlog.nuspec",
"useSharedDesignerContext.txt"
]
},
"System.Runtime.Caching/9.0.1": {
"sha512": "5E4yKPLeruveoh1EZKHl6f6jWXcd/a4tu+1IedG5ZndPPRAeAzFV4+ZagrcQMwz7xTFYOxC0zKM174nPGuTKoA==",
"type": "package",
"path": "system.runtime.caching/9.0.1",
"files": [
".nupkg.metadata",
".signature.p7s",
"Icon.png",
"LICENSE.TXT",
"PACKAGE.md",
"THIRD-PARTY-NOTICES.TXT",
"buildTransitive/net8.0/_._",
"buildTransitive/netcoreapp2.0/System.Runtime.Caching.targets",
"lib/MonoAndroid10/_._",
"lib/MonoTouch10/_._",
"lib/net462/_._",
"lib/net8.0/System.Runtime.Caching.dll",
"lib/net8.0/System.Runtime.Caching.xml",
"lib/net9.0/System.Runtime.Caching.dll",
"lib/net9.0/System.Runtime.Caching.xml",
"lib/netstandard2.0/System.Runtime.Caching.dll",
"lib/netstandard2.0/System.Runtime.Caching.xml",
"lib/xamarinios10/_._",
"lib/xamarinmac20/_._",
"lib/xamarintvos10/_._",
"lib/xamarinwatchos10/_._",
"runtimes/win/lib/net8.0/System.Runtime.Caching.dll",
"runtimes/win/lib/net8.0/System.Runtime.Caching.xml",
"runtimes/win/lib/net9.0/System.Runtime.Caching.dll",
"runtimes/win/lib/net9.0/System.Runtime.Caching.xml",
"system.runtime.caching.9.0.1.nupkg.sha512",
"system.runtime.caching.nuspec",
"useSharedDesignerContext.txt"
]
},
"System.Security.Cryptography.ProtectedData/9.0.1": {
"sha512": "u+4PH6GyDjEsWgcpKp1S/DiyxtGvazNPdaPFR6p6/qZr3TW+oZWvwfHO2H2CSpS4KGl2z2CBfU6eB38PsmoxtA==",
"type": "package",
"path": "system.security.cryptography.protecteddata/9.0.1",
"files": [
".nupkg.metadata",
".signature.p7s",
"Icon.png",
"LICENSE.TXT",
"PACKAGE.md",
"THIRD-PARTY-NOTICES.TXT",
"buildTransitive/net461/System.Security.Cryptography.ProtectedData.targets",
"buildTransitive/net462/_._",
"buildTransitive/net8.0/_._",
"buildTransitive/netcoreapp2.0/System.Security.Cryptography.ProtectedData.targets",
"lib/MonoAndroid10/_._",
"lib/MonoTouch10/_._",
"lib/net462/System.Security.Cryptography.ProtectedData.dll",
"lib/net462/System.Security.Cryptography.ProtectedData.xml",
"lib/net8.0/System.Security.Cryptography.ProtectedData.dll",
"lib/net8.0/System.Security.Cryptography.ProtectedData.xml",
"lib/net9.0/System.Security.Cryptography.ProtectedData.dll",
"lib/net9.0/System.Security.Cryptography.ProtectedData.xml",
"lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll",
"lib/netstandard2.0/System.Security.Cryptography.ProtectedData.xml",
"lib/xamarinios10/_._",
"lib/xamarinmac20/_._",
"lib/xamarintvos10/_._",
"lib/xamarinwatchos10/_._",
"system.security.cryptography.protecteddata.9.0.1.nupkg.sha512",
"system.security.cryptography.protecteddata.nuspec",
"useSharedDesignerContext.txt"
]
}
},
"projectFileDependencyGroups": {
"net9.0": [
"System.Runtime.Caching >= 9.0.1"
]
},
"packageFolders": {
"C:\\Users\\Zel\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "2.20.1",
"restore": {
"projectUniqueName": "E:\\HelloWord\\nysj2\\ZelWiki.Caching\\ZelWiki.Caching.csproj",
"projectName": "ZelWiki.Caching",
"projectPath": "E:\\HelloWord\\nysj2\\ZelWiki.Caching\\ZelWiki.Caching.csproj",
"packagesPath": "C:\\Users\\Zel\\.nuget\\packages\\",
"outputPath": "E:\\HelloWord\\nysj2\\ZelWiki.Caching\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\Zel\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net9.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net9.0": {
"targetAlias": "net9.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
},
"SdkAnalysisLevel": "9.0.100"
},
"frameworks": {
"net9.0": {
"targetAlias": "net9.0",
"dependencies": {
"System.Runtime.Caching": {
"target": "Package",
"version": "[9.0.1, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.102/PortableRuntimeIdentifierGraph.json"
}
}
}
}

View File

@@ -0,0 +1,13 @@
{
"version": 2,
"dgSpecHash": "KdeqL79kFSI=",
"success": true,
"projectFilePath": "E:\\HelloWord\\nysj2\\ZelWiki.Caching\\ZelWiki.Caching.csproj",
"expectedPackageFiles": [
"C:\\Users\\Zel\\.nuget\\packages\\system.configuration.configurationmanager\\9.0.1\\system.configuration.configurationmanager.9.0.1.nupkg.sha512",
"C:\\Users\\Zel\\.nuget\\packages\\system.diagnostics.eventlog\\9.0.1\\system.diagnostics.eventlog.9.0.1.nupkg.sha512",
"C:\\Users\\Zel\\.nuget\\packages\\system.runtime.caching\\9.0.1\\system.runtime.caching.9.0.1.nupkg.sha512",
"C:\\Users\\Zel\\.nuget\\packages\\system.security.cryptography.protecteddata\\9.0.1\\system.security.cryptography.protecteddata.9.0.1.nupkg.sha512"
],
"logs": []
}

View File

@@ -0,0 +1 @@
"restore":{"projectUniqueName":"E:\\HelloWord\\nysj2\\TightWiki.Caching\\TightWiki.Caching.csproj","projectName":"TightWiki.Caching","projectPath":"E:\\HelloWord\\nysj2\\TightWiki.Caching\\TightWiki.Caching.csproj","outputPath":"E:\\HelloWord\\nysj2\\TightWiki.Caching\\obj\\","projectStyle":"PackageReference","fallbackFolders":["C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"],"originalTargetFrameworks":["net9.0"],"sources":{"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\":{},"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net9.0":{"targetAlias":"net9.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]},"restoreAuditProperties":{"enableAudit":"true","auditLevel":"low","auditMode":"direct"}}"frameworks":{"net9.0":{"targetAlias":"net9.0","dependencies":{"System.Runtime.Caching":{"target":"Package","version":"[9.0.1, )"}},"imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"C:\\Program Files\\dotnet\\sdk\\9.0.102/PortableRuntimeIdentifierGraph.json"}}

View File

@@ -0,0 +1 @@
17399550708669933

View File

@@ -0,0 +1 @@
17400197434625329