LiteAPI.Cache 1.0.1

dotnet add package LiteAPI.Cache --version 1.0.1
                    
NuGet\Install-Package LiteAPI.Cache -Version 1.0.1
                    
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.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LiteAPI.Cache" Version="1.0.1" />
                    
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.0.1
                    
#r "nuget: LiteAPI.Cache, 1.0.1"
                    
#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.0.1
                    
#: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.0.1
                    
Install as a Cake Addin
#tool nuget:?package=LiteAPI.Cache&version=1.0.1
                    
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

🧠 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 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.
  • 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.0.1 223 8/7/2025
1.0.0 214 8/7/2025

add linux support