home/categories/nosql-databases/mikaak-elixir-cache-skills-elixir-cache-skill-md
nosql-databasesdatabases

elixir-cache

Use when working with caching in any Elixir project that uses the elixir_cache library. TRIGGER on any of these scenarios: (1) Adding, modifying, or debugging any cache module (`use Cache`, `_cache` suffix modules, adapter selection); (2) Choosing between adapters (ETS vs Redis vs ConCache vs PersistentTerm vs Counter vs DETS vs Agent); (3) Redis operations — hash_get/hash_set/hash_scan, json_get/json_set, sadd/smembers, scan, command, pipeline, connection pools; (4) ETS operations — update_counter, match_pattern, tab2file, rehydration, read_concurrency; (5) Strategy adapters — MultiLayer (L1/L2 caching), HashRing (distributed/consistent hashing), RefreshAhead (proactive refresh); (6) Testing caches — Cache.CaseTemplate, SandboxRegistry, sandbox?, async test isolation, cache mocking; (7) Cache patterns — get_or_create, cache invalidation, cache warming, TTL management, compression_level; (8) Infrastructure — supervision tree setup with {Cache, [modules]}, runtime config, Poolboy pools; (9) Performance — thund

MikaAK
maintainer
MikaAK
更新于 3/30/2026
星标
14
分支
8
quick start

Installation and usage

Use when working with caching in any Elixir project that uses the elixir_cache library. TRIGGER on any of these scenarios: (1) Adding, modifying, or debugging any cache module (`use Cache`, `_cache` suffix modules, adapter selection); (2) Choosing between adapters (ETS vs Redis vs ConCache vs PersistentTerm vs Counter vs DETS vs Agent); (3) Redis operations — hash_get/hash_set/hash_scan, json_get/json_set, sadd/smembers, scan, command, pipeline, connection pools; (4) ETS operations — update_counter, match_pattern, tab2file, rehydration, read_concurrency; (5) Strategy adapters — MultiLayer (L1/L2 caching), HashRing (distributed/consistent hashing), RefreshAhead (proactive refresh); (6) Testing caches — Cache.CaseTemplate, SandboxRegistry, sandbox?, async test isolation, cache mocking; (7) Cache patterns — get_or_create, cache invalidation, cache warming, TTL management, compression_level; (8) Infrastructure — supervision tree setup with {Cache, [modules]}, runtime config, Poolboy pools; (9) Performance — thund

安装
$ install --globalskills.sh
使用

安装后,您可以通过在终端运行以下命令来使用此技能:

skills use elixir-cache