NCache
activeby Alachisoft · since 2005 · also known as Alachisoft NCache
A native .NET distributed cache and data grid for Windows and Linux, with an Apache-licensed edition.
Overview
NCache is a distributed in-memory cache built in .NET by Alachisoft, aimed at ASP.NET and .NET Core applications that need session state, IDistributedCache and EF Core caching without leaving the Microsoft stack. It supports partitioned and replicated topologies, client-side caches, SQL-like queries, pub/sub, continuous queries and cache dependencies on databases. A free Open Source edition (Apache 2.0) is capped at 3 nodes and 4 GB, so production clusters generally use the commercial Enterprise edition; 5.3.8 in October 2026 added a managed NCache Cloud on Azure and AWS.
Strengths & trade-offs
Strengths
- +Native .NET server and client with deep ASP.NET Core integration
- +Client-side near cache for in-process read speed
- +Database dependencies keep cache entries in sync with SQL Server and Oracle
- +Runs on Windows servers where many Redis builds do not
Trade-offs
- −Open Source edition is heavily capped (3 nodes, 4 GB)
- −Enterprise pricing is per server and not cheap
- −Small community outside the .NET enterprise world
- −Fewer managed-cloud options than Redis-compatible services
Great for
- +ASP.NET session and output caching
- +EF Core second-level caching
- +Shared cache for .NET microservices on Windows or Linux
Think twice for
- −Polyglot stacks better served by Redis/Valkey
- −Large free deployments
Capabilities
Native or official first-party support · 10 of 25 tracked
Scale & consistency
- Comfortable data size
- Medium · ≤ 10 TB
- Horizontal scaling
- Native
- Multi-region
- Active active
- Transactions
- Limited ACID
- Consistency
- Strong, Eventual
- Schema
- Schemaless
- Architecture
- In memory, Distributed, Client server
- Query languages
- SQL-like query API, LINQ
Partition-replica topology scales out; WAN replication (Enterprise) links data centers.
Deployment
available on · Azure · AWS
Ecosystem
Alternatives to NCache
The in-memory data structure server that became the default cache, now with search, JSON and vectors built in.
ncache vs redis →Microsoft Research's .NET cache-store that speaks RESP and scales across cores and storage tiers.
ncache vs garnet →A Java in-memory data grid and stream processor that embeds in your app or runs as a cluster.
ncache vs hazelcast →Microsoft's managed Redis built on Redis Enterprise, replacing the retiring Azure Cache for Redis.
ncache vs azure-cache-for-redis →The Linux Foundation's BSD-licensed fork of Redis, now the default engine on AWS and Google Cloud.
ncache vs valkey →Red Hat's open-source distributed cache and key-value store, embeddable or as a RESP-compatible server.
ncache vs infinispan →NCache FAQ
What is NCache?
NCache is a key-value database by Alachisoft, first released in 2005. NCache is a distributed in-memory cache built in .NET by Alachisoft, aimed at ASP.NET and .NET Core applications that need session state, IDistributedCache and EF Core caching without leaving the Microsoft stack. It supports partitioned and replicated topologies, client-side caches, SQL-like queries, pub/sub, continuous queries and cache dependencies on databases. A free Open Source edition (Apache 2.0) is capped at 3 nodes and 4 GB, so production clusters generally use the commercial Enterprise edition; 5.3.8 in October 2026 added a managed NCache Cloud on Azure and AWS.
Is NCache open source?
Yes. NCache is open source. License: Apache 2.0 (Open Source edition); Enterprise is commercial.
Does NCache support ACID transactions?
Partly. NCache offers limited ACID guarantees (for example, single-record or single-partition transactions), with strong, eventual consistency.
Does NCache scale horizontally?
NCache scales horizontally out of the box, with built-in sharding or partitioning. It is comfortable at medium scale (≤ 10 TB). It supports active-active multi-region writes.
How can I run NCache?
You can self-host it and use the vendor's managed cloud. Managed offerings include NCache Cloud. It is available on Azure and AWS.
What is NCache best for?
NCache is a strong fit for ASP.NET session and output caching; EF Core second-level caching; and shared cache for .NET microservices on Windows or Linux. Think twice for polyglot stacks better served by Redis/Valkey.
What are the best alternatives to NCache?
Common alternatives to NCache include Redis, Microsoft Garnet, Hazelcast, Azure Managed Redis and Valkey. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.
How popular is NCache?
NCache ranks #337 of 844 databases on the WhichDB Score (7.8/100), and #46 among key-value databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.



