AshCache.Store.Adapters.Nebulex (AshCache v0.1.0)

Copy Markdown View Source

Experimental: not yet tested on real servers.

Stores entries in your own Nebulex cache, so several servers can share one cache: Nebulex handles the servers (local, partitioned, replicated, multilevel, Redis and so on).

The store name is the Nebulex cache module, so each cached resource sets store MyApp.Cache, and you start MyApp.Cache in your supervision tree instead of AshCache.Supervisor. See the storage guide.

:never_evict is dropped: Nebulex has no way to exempt one entry from eviction. Losing the counter it was for costs misses, never old data (see AshCache.CacheVersion). Every other option, including a read's store_options, is passed to the cache's put/3.