feat: initial v0.1 scaffold#1
Merged
Merged
Conversation
Public API surface: get/2,3, put/3,4, fetch/3,4, delete/2, delete_many/2, invalidate/2, clear/1. ETS adapter with TTL sweep + soft LRU max_size, pg-based invalidation transport, ETS-backed single-flight fetch dedup. Adapter-owns-its-process model; State opaque to nova_cache. Time arithmetic in ms throughout. Invalidation is best-effort eventual, TTL is the correctness backstop. Per-cache invalidation => best_effort | ttl_only | strict, with strict refusing to start without ttl_default. Ships with Taure/erlang-ci v2 CI + release workflows, ex_doc guides for getting-started, adapters, invalidation, and telemetry.
ℹ️ 15 OTP CVEs auto-ignored (already fixed in running version)These CVEs are patched in the installed OTP version but NVD data
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Initial v0.1 scaffold of
nova_cache— a general-purpose KV cache library for the Nova ecosystem.Public API
get/2,3,put/3,4,fetch/3,4,delete/2,delete_many/2,invalidate/2,clear/1Architecture
nova_cache_adapterbehaviour with adapter-owns-its-process model;Stateis opaque to nova_cachenova_cache_invalidatortransport behaviour; default implnova_cache_invalidator_pgoverpgnova_cache_etsadapter: per-cache gen_server + ETS table, direct concurrent reads/writes, TTL sweep, soft LRUmax_sizenova_cache_single_flightETS-backed dedup forfetch/3— no extra process per cachenova_cache_registryETS index ofName -> {AdapterMod, State}, monitored for crashesInvalidation model
Best-effort eventual delivery. TTL is the correctness backstop. Per-cache config:
best_effort(default) — subscribe; serve stale on missttl_only— skip broadcasts entirelystrict— best-effort + refuses to start withoutttl_defaultDecisions reached during scoping
Stateopaque to nova_cachestats/1dropped from the adapter behaviour; OTel counters are the only telemetry surface{pattern, Pattern}dropped frominvalidate/2;delete_many/2replaces itnova_pubsub-coupled);pg-backed defaultmax_sizenova_cacheMUST NOT become a dependency of nova coreTest plan
rebar3 compile— cleanrebar3 ct— 14/14 passrebar3 xref— cleanrebar3 dialyzer— cleanrebar3 hank— cleanrebar3 fmt --check— cleanv0.1.0once mergedFollow-ups (not in v0.1)
nova_cache_redis) — v0.2nova_cacheopentelemetry_nova_cachesibling for trace/metric pipeline