docs/current_docs/partials/cookbook/builds/_cache-dependencies.mdx
The following Dagger Function uses a cache volume for application dependencies. This enables Dagger to reuse the contents of the cache across Dagger Function runs and reduce execution time.
<Tabs groupId="language" queryString="sdk"> <TabItem value="go" label="Go">:::note
The default location for the cache directory depends on the package manager (~/.cache/pip for pip or ~/.cache/pypoetry for poetry).
:::
Build an application using cached dependencies:
<Tabs groupId="shell">
<TabItem value="System shell">
```shell
dagger -c 'build .'
```
</TabItem>
<TabItem value="Dagger Shell">
```shell title="First type 'dagger' for interactive mode."
build .
```
</TabItem>
<TabItem value="Dagger CLI">
```shell
dagger call build --source=.
```
</TabItem>
</Tabs>