Skip to content

About

A thread-safe .NET caching library supporting both in-memory and Redis providers with TTL support, OpenTelemetry integration, and a simple configuration system for efficient data caching in distributed applications.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

License GitHub Release Date NuGetVersion NugetDownloads Coverage issues .NET PR

Size GitHub contributors GitHub commits since latest release (by date) Activity Activity Activity

Cross.Cache

A flexible and efficient caching library for .NET applications that provides:

Key Features

  • Multiple cache provider support (In-Memory and Redis)
  • Easy integration with dependency injection
  • Asynchronous operations with TTL support
  • Built-in monitoring and metrics (OpenTelemetry integration)
  • Thread-safe operations
  • Configurable through standard .NET configuration system

Storage Options

  • In-Memory caching for single-server scenarios
  • Redis support for distributed caching
  • Automatic failover and connection management for Redis

Performance

  • Thread-safe concurrent operations
  • Optimized for high-performance scenarios
  • Efficient memory usage

Integration

  • Simple setup through extension methods
  • Compatible with .NET 7.0 and higher
  • Built-in Microsoft DI container support

Monitoring

  • Detailed cache statistics
  • OpenTelemetry metrics support
  • Per-key performance tracking

This library is designed to provide a robust caching solution for both simple and complex .NET applications, offering flexibility in cache storage choices while maintaining high performance and reliability.

Roadmap:

  • Implement functionality of SlidingExpiration from DistributedCacheEntryOptions options

About

A thread-safe .NET caching library supporting both in-memory and Redis providers with TTL support, OpenTelemetry integration, and a simple configuration system for efficient data caching in distributed applications.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages