Conversation
Printavo V2 GraphQL is a transactional API with no pre-aggregated analytics queries. Replace the vague "Analytics / Reporting Expansion" entry with an accurate note and concrete client-side aggregation helper specs that require full pagination (and therefore a cache adapter as a prerequisite). Remove stale shipped-feature entries (CLI, Retry/Backoff, Mutations) from FUTURE.md and Multi-Language SDK Family from TODO.md stretch goals. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…aching) - Add optional `cache:` / `default_ttl:` kwargs to `Printavo::Client` - Add `Printavo::MemoryStore` — thread-safe, TTL-aware in-memory cache store - `GraphqlClient#query` is now cache-aware; `#mutate` always bypasses cache - Cache keys are stable SHA-256 digests of normalized query + variables - Update `docs/CACHING.md` — replace future-tense section with shipped usage - Update `docs/TODO.md` — mark cache adapter tasks complete, add v0.18.0 entry - 749 examples, 0 failures, 100% line coverage, 0 RuboCop offenses Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
cache:anddefault_ttl: 300kwargs toPrintavo::Client— accepts any object responding tofetch(key, expires_in:) { }anddelete(key), matching theRails.cacheinterfacePrintavo::MemoryStore— thread-safe, TTL-aware in-memory cache store for non-Rails usageGraphqlClient#queryis now cache-aware;#mutatealways bypasses the cache"printavo:gql:<hash>")docs/CACHING.md— replaces the "Future: Built-In Cache Adapter" placeholder with full shipped usage examplesdocs/TODO.md— marks cache adapter tasks complete, adds v0.18.0 entrydocs/FUTURE.md— it's shippedTest plan
Printavo::MemoryStorespec — 8 examples covering cache miss, hit, TTL expiry, multi-key, deleteGraphqlClientcaching describe block — 6 examples covering deduplication, cache bypass on mutate, separate keys for different queries/variablesClientspec — 2 new examples forcache:anddefault_ttl:kwargs🤖 Generated with Claude Code