Wires caching into the resource's actions at compile time:
- each cached read action gets the
AshCache.Preparations.ReadThroughpreparation, appended after any preparations the action declares - each cached generic action has its
runreplaced byAshCache.Actions.RunThrough, which calls the original on a miss - each cached calculation has its implementation replaced by
AshCache.Calculations.CalculateThrough, which calls the original for the records not in the cache - every create/update/destroy gets the
AshCache.Changes.InvalidateCachechange, so invalidation is a property of the resource — an action added later cannot forget it
Summary
Functions
Callback implementation for Spark.Dsl.Transformer.after_compile?/0.
Callback implementation for Spark.Dsl.Transformer.before?/1.
Functions
Callback implementation for Spark.Dsl.Transformer.after_compile?/0.
Callback implementation for Spark.Dsl.Transformer.before?/1.