Side by side
Ehcache vs Garnet
Both stand on caching software. Which one you can start free with, which one lets you read the code, and what each costs once you pay.
Free plan Open source APISelf-hosted
Ehcache combines Java caching with JCache compatibility, off-heap options, and several deployment patterns. Check the Java and XA transaction limits against your requirements before choosing it.
Visit Ehcache Free plan LinuxMacSelf-hosted+1
Choose Garnet if you need a free, self-hosted cache-store with RESP client support, persistence options and cluster features. Its MIT license and broad data APIs suit developers who can operate the service themselves. Look elsewhere if you require Redis modules or a fully compatible Redis drop-in replacement.
Visit GarnetThe facts
| Ehcache | Garnet | |
|---|---|---|
| Free plan | Yes | Yes |
| Open source | Yes | Not published |
| Runs on | API, Self-hosted | Linux, Mac, Self-hosted, Windows |
| Lowest paid plan | Free or on request | Free or on request |
| Plans published | 3 | 2 |
| Maker | Not published | Not published |
| Website | ehcache.org | microsoft.github.io |
| On caching software | #2 of 27 | #6 of 27 |
Ehcache: what it does well
- Free under the Apache 2.0 license
- Supports off-heap storage
- Compatible with JCache (JSR-107)
- XML and Java API configuration
- Can share data across application instances
What to know first
- Ehcache 3.11 requires Java 8 or later
- Java 8 support ends with the 3.11 release line
- XA isolation is limited to Read-Committed
- Ehcache 2.x is no longer actively maintained
Garnet: what it does well
- Free self-hosted plan under the MIT License.
- Works with many unmodified Redis clients using RESP.
- Supports local or cloud storage, checkpointing and recovery.
- Multi-node clusters support sharding, state migration and replication.
- Includes TLS/SSL connections and RESP password authentication.
What to know first
- Self-hosted users manage infrastructure, updates and operations.
- Not intended as a fully compatible Redis drop-in replacement.
- Redis modules are not supported.
- DiskANN vector support and Bf-Tree range indexes are preview features.
Alternatives to Ehcache Alternatives to Garnet The whole list