Expand description
Recyclable cache versioning (Rails cache_versioning): a stored entry
carries a version, and a read with a different version is a miss — so bumping
the version cheaply invalidates without deleting keys.
Functions§
- read_
versioned - Read
keyonly if its stored version matchesversion; a mismatch (or a missing key) is a miss. - versioned_
key - A versioned key:
versioned_key("post/1", 3)→"post/1:v3". - write_
versioned - Store
valueunderkeytagged withversion.