Popularity
3.6
Growing
Activity
0.0
Stable
27
1
5
Monthly Downloads: 18
Programming language: Elixir
License: Do What The F*ck You Want To Public License
Latest version: v0.3.1
Mem alternatives and similar packages
Based on the "Caching" category.
Alternatively, view Mem alternatives based on common mentions on social networks and blogs.
-
cachex
A powerful caching library for Elixir with support for transactions, fallbacks and expirations -
request_cache_plug
Request caching for Phoenix & Absinthe (GraphQL), short circuiting even the JSON decoding/encoding -
elixir_locker
Locker is an Elixir wrapper for the locker Erlang library that provides some useful libraries that should make using locker a bit easier.
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
Promo
www.influxdata.com

Do you think we are missing an alternative of Mem or a related project?
Popular Comparisons
README
Mem
KV cache with TTL, Replacement and Persistence support
Usage
define your cache module
defmodule Cache do use Mem, worker_number: 2, # (optional, default: 2) how many processes in worker pool default_ttl: 300, # (optional, default: nil) default expire seconds for set/2 maxmemory_size: "1000M", # (optional, default: nil) max memory used, support such format: [1000, "10k", "1GB", "1000 K"] maxmemory_strategy: :lru, # ([:lru, :ttl, :fifo]) strategy for cleaning memory persistence: false # (optional, default: false) whether enable persistence end
add this module to supervisor
defmodule MyApp.Supervisor do use Supervisor def start_link do Supervisor.start_link(__MODULE__, []) end def init([]) do [ Cache.child_spec, ] |> supervise(strategy: :one_for_one) end end
just use it like redis
Cache.set(:a, 1) Cache.inc(:a, 2) Cache.set(:b, 2, 200) Cache.get(:a) Cache.expire(:a, 200) Cache.ttl(:a) Cache.del(:b) Cache.flush Cache.hset(:c, :a, 2) Cache.hget(:c, :a) Cache.memory_used()