Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arcticlampyrid/mmkv.net
https://github.com/arcticlampyrid/mmkv.net
Last synced: about 19 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/arcticlampyrid/mmkv.net
- Owner: ArcticLampyrid
- License: mit
- Created: 2022-09-05T09:50:51.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-26T08:05:04.000Z (7 months ago)
- Last Synced: 2024-04-27T08:45:20.098Z (7 months ago)
- Language: C#
- Size: 41 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ManagedMmkv
[![NuGet](https://img.shields.io/nuget/v/Alampy.ManagedMmkv.svg)](https://www.nuget.org/packages/Alampy.ManagedMmkv)
[Tencent MMKV](https://github.com/Tencent/MMKV) bindings for modern .NET (unofficial)## Sample Code
```csharp
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