FastCache is a small, high-performance, thread-safe in-memory cache library for .NET 6+. The core is a generic FastCache<TKey, TValue> class built on ConcurrentDictionary, using Environment.TickCount64 for wrap-free expiration timestamps and a shared, lock-throttled background timer to evict expired entries across all cache instances. It provides atomic GetOrAdd with factory arguments to avoid delegate allocations, indexer-based upserts, and an atomic Remove(key, value) operation. The library is distributed as a NuGet package (Jitbit.FastCache) and includes a BenchmarkDotNet project comparing it to MemoryCache and HybridCache, plus a unit test project covering eviction callbacks and cache semantics.
gookit/cache is a Go library that provides a unified caching interface (`Cache`) and a registry manager (`Manager`) to wrap multiple backend drivers. The core is minimal and well-abstracted, allowing users to switch between in-memory, file-based, Redis (via go-redis or redigo), Memcached, BuntDB, BoltDB, and other cache systems with a single API. The library includes two built-in drivers (memory and file) and partial stubs for Badger, LevelDB, and NutsDB. The codebase is cleanly structured with a `BaseDriver` that standardizes options like key prefixing, serialization, and logging. The `Manager` pattern is a reusable registry for any service-driven architecture. While several external drivers are outdated or incomplete, the core library is production-ready and well-tested, making it a solid choice for projects needing a simple, pluggable caching layer.