Alampy.ManagedMmkv
0.0.5
.NET Core 3.1
dotnet add package Alampy.ManagedMmkv --version 0.0.5
NuGet\Install-Package Alampy.ManagedMmkv -Version 0.0.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Alampy.ManagedMmkv" Version="0.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Alampy.ManagedMmkv --version 0.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Alampy.ManagedMmkv, 0.0.5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Alampy.ManagedMmkv as a Cake Addin
#addin nuget:?package=Alampy.ManagedMmkv&version=0.0.5
// Install Alampy.ManagedMmkv as a Cake Tool
#tool nuget:?package=Alampy.ManagedMmkv&version=0.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ManagedMmkv
Tencent MMKV bindings for modern .NET (unofficial)
Sample Code
using (var mmkv = Mmkv.Default(MmkvMode.SingleProcess))
{
mmkv.Set("test", 123);
Assert.That(mmkv.GetInt32("test"), Is.EqualTo(123));
}
using (var mmkv = Mmkv.Default(MmkvMode.SingleProcess))
{
Assert.Multiple(() =>
{
Assert.That(mmkv.GetInt32("test"), Is.EqualTo(123));
Assert.Catch(() => mmkv.GetString("test"));
Assert.That(mmkv.GetInt32OrDefault("test456", 456), Is.EqualTo(456));
});
}
Requirements
- .NET Core 3.1+ or .NET 5+
- Running on one of the following architectures:
-
- win-x86
-
- win-x64
-
- win-arm64
-
- linux-x64
-
- linux-arm64
-
- mac-x64
License
Licensed under the MIT License
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
.NET Core | netcoreapp3.1 |
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.1
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.