Skip to content

feat(rewind): allow per-entry TTL override in store()#26

Open
grounds-zz wants to merge 1 commit intoopen-compress:mainfrom
grounds-zz:feat/rewind-per-entry-ttl
Open

feat(rewind): allow per-entry TTL override in store()#26
grounds-zz wants to merge 1 commit intoopen-compress:mainfrom
grounds-zz:feat/rewind-per-entry-ttl

Conversation

@grounds-zz
Copy link
Copy Markdown

Closes #13

Summary

Adds an optional ttl parameter to RewindStore.store() so compression stages can set different expiry times per entry.

Changes

  • store() accepts optional ttl: int parameter
  • Per-entry TTL stored in CacheEntry.ttl_override
  • retrieve() checks entry-level TTL first, falls back to global TTL
  • Backward compatible: existing callers unchanged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RewindStore TTL should be configurable per content type

1 participant