README.md in materialist-3.1.0 vs README.md in materialist-3.2.0
- old
+ new
@@ -178,13 +178,15 @@
describes mapping a resource key to a database column.
#### `capture_link_href <key>, as: <column>`
describes mapping a link href (as it appears on the hateous response) to a database column.
-#### `link <key>`
+#### `link <key>, enable_caching: <enable_caching> (default: false)`
describes materializing from a relation of the resource. This can be nested to any depth as shown above.
When inside the block of a `link` any other part of DSL can be used and will be evaluated in the context of the relation resource.
+
+`<enable_caching>` is optional and false by default. If `true` then Routemaster cache will be used when available for linked resources.
### `materialize_link <key>, topic: <topic> (default: key)`
describes materializing the linked entity.
This simulates a `:noop` event on the given topic and the `url` of the
liked resource `<key>` as it appears on the response (`_links`) -- meaning the materializer for the given topic will be invoked.