Skip to contents

Every successful lookup pins its action for its owner before returning. Pins are cumulative: removing a local store never releases its files implicitly. Release an owner only after its pipeline, retained history and external readers no longer need those paths. Collection is explicitly quiescent, not online GC.

Usage

shared_references(cache)

shared_retain(cache, keys, owner = shared_owner())

shared_release(cache, owner, keys = NULL, quiescent = FALSE)

Arguments

cache

A shared_cache() configuration.

keys

Action keys to retain or release. NULL releases all of the owner's references, including native CAS references.

owner

Retention owner string, e.g. shared_owner().

quiescent

Explicit assertion that all consumers have stopped and the references being released are no longer needed. Required for release.

Value

shared_references() returns a data frame of owner, kind and key. Retain/release return the number of requested/removed references invisibly.