Skip to main content

Module invalidation

Module invalidation 

Source
Expand description

Mutation-triggered invalidation helpers.

These pure helpers contain the invalidation logic for common S3 mutations. The actual call sites (S3 commands) wire them in during later tasks.

§OCP

Adding a new mutation type: add one more pub fn on_*_mutation that calls store.invalidate(...) for the affected CacheKey variants. Nothing else changes.

Functions§

on_bucket_mutation
Invalidate the Buckets listing for a profile when a bucket-level mutation occurs (e.g. bucket created or deleted).
on_object_mutation
Invalidate Objects and ObjectHead keys for the affected scope when an object is created, updated, deleted, or moved within bucket/prefix.