Skip to content

caching ​

Stores and reuses the outcome of a call.

NameCategoryDescription
cache
hooks

Caches get and find results based on params. On mutating methods (create, update, patch, remove), affected cache entries are automatically invalidated. Works as a before, after, or around hook.

Use the iff option to restrict caching to certain calls (e.g. internal ones) — invalidation always runs, for every call. For writes that skip the hooks (_patch & co.), wrap them in the returned hook's invalidate.

See all tags for the full vocabulary.

Released under the MIT License.