cachex
A powerful caching library for Elixir with support for transactions, fallbacks and expirations (by whitfin)
con_cache
ets based key/value cache with row level isolated writes and ttl support (by sasa1977)
Our great sponsors
cachex | con_cache | |
---|---|---|
4 | 2 | |
1,455 | 891 | |
- | - | |
8.1 | 4.1 | |
1 day ago | about 1 month ago | |
Elixir | Elixir | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cachex
Posts with mentions or reviews of cachex.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-07-19.
-
Optimizing Elixir Phoenix action with huge json response by responding by cached, gzipped values.
By integrating cachex into our system, we're now able to optimize the loading process, providing users with a smoother experience while still benefiting from offline accessibility. Stay tuned as I delve deeper into the caching practices that helped us enhance the performance of our Phoenix Controller actions with JSON responses.
-
Should I use ETS or a GenServer when I just need a K/V store
There's also ConCache or Cachex which will handle the clunky ETS interface for you.
-
try-catch vs "let it crash"
I have a web application which uses cowboy and cachex every so often cachex errors, which means my server returns a 500.
con_cache
Posts with mentions or reviews of con_cache.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-05-10.
-
Should I use ETS or a GenServer when I just need a K/V store
There's also ConCache or Cachex which will handle the clunky ETS interface for you.
-
Elixir: Practical Concurrency Cookbook
However, while Elixir does provide the necessary abstractions to make caching easy, my recommendation on this one is usually to lean on the community's shoulders. Saša Jurić, for example, wrote a while back ConCache which does exactly this, but there are many others out there. The good thing about not implementing one it's own is that there are many edge cases when dealing with concurrency and it's easy to get it wrong the first few times. As they say, the two hardest problems in computer science are naming and caching.
What are some alternatives?
When comparing cachex and con_cache you can also consider the following projects:
Nebulex - In-memory and distributed caching toolkit for Elixir.
elixir_locker
lru_cache - ETS-based fix-sized LRU cache for elixir
Mem - KV cache with TTL, Replacement and Persistence support
locker - Atomic distributed "check and set" for short-lived keys
stash - A small and user-friendly ETS wrapper for caching in Elixir
Haphazard - A configurable plug for caching