LiteAPI.Cache 1.1.2

dotnet add package LiteAPI.Cache --version 1.1.2
                    
NuGet\Install-Package LiteAPI.Cache -Version 1.1.2
                    
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="LiteAPI.Cache" Version="1.1.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LiteAPI.Cache" Version="1.1.2" />
                    
Directory.Packages.props
<PackageReference Include="LiteAPI.Cache" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add LiteAPI.Cache --version 1.1.2
                    
#r "nuget: LiteAPI.Cache, 1.1.2"
                    
#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.
#:package LiteAPI.Cache@1.1.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=LiteAPI.Cache&version=1.1.2
                    
Install as a Cake Addin
#tool nuget:?package=LiteAPI.Cache&version=1.1.2
                    
Install as a Cake Tool

LiteAPI.Cache - JustCache

GC-free, cross-platform in-memory cache for .NET backed by Rust.

JustCache is a high-performance memory cache system built to bypass .NET's garbage collector by leveraging native Rust memory management. Designed for low-latency, high-throughput scenarios where predictability and performance are essential.


๐Ÿš€ Key Features

  • โšก GC-Free: No garbage collection pressure in .NET
  • ๐Ÿง  Native performance using Rust under the hood
  • ๐Ÿ’ผ Cross-platform: Supports Windows, Linux, and macOS
  • ๐Ÿ”’ Thread-safe read/write access
  • ๐Ÿ’พ Supports strings, byte arrays, and JSON-serializable objects
  • ๐Ÿงฉ Interop via NativeAOT or P/Invoke
  • ๐Ÿ›ก๏ธ Safe memory management without leaks

๐Ÿ“ฆ Installation

Install the NuGet package:

dotnet add package LiteAPI.Cache

๐Ÿ”ง Requires a precompiled native Rust dynamic library. See the documentation or GitHub repository for details.


โš™๏ธ Usage

  • Initialize the cache at application startup
  • Set/Get data by key (supports string, bytes, and object types)
  • Remove individual keys or clear all
  • Interop with Rust is handled internallyโ€”no manual marshaling needed
using LiteAPI.Cache;

string key = "example_key";
Student student = Student.Random(1);

// Initialize the cache and perform operations
JustCache.Initialize();

// Set an object in the cache
JustCache.SetObject(key, student);

// Retrieve the object from the cache
student = JustCache.GetObject<Student>(key) ?? Student.Random(2);

// Display the retrieved object
Console.WriteLine(student);

// Remove the object from the cache
JustCache.Remove(key);

// Clear all cached objects
JustCache.ClearAll();

๐Ÿง  Why JustCache?

  • ๐Ÿš€ Ultra-fast native cache access
  • โœ… No impact on .NET GC or memory fragmentation
  • ๐Ÿงฉ Drop-in utility for microservices, real-time systems, or edge apps
  • ๐Ÿ” Useful for caching config, lookup tables, auth sessions, and more

๐Ÿชช License

MIT License ยฉ 2025 LiteAPI


๐Ÿ’ฌ Feedback

Found a bug or want a feature? Open an issue or PR on GitHub.

๐Ÿ› ๏ธ Contributing

We welcome contributions! Please see the CONTRIBUTING.md for guidelines.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • 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.

Version Downloads Last Updated
1.1.2 400 11/19/2025
1.1.1 399 11/19/2025
1.1.0 543 11/18/2025
1.0.1 271 8/7/2025
1.0.0 253 8/7/2025

add linux support