# versioned_cache_path

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/plugins/store/versioned_cache_path)

Return the versioned cache path for a plugin id.

## Signature

```python
versioned_cache_path(
    plugin_id: str,
    version: str | None,
) -> Path
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `plugin_id` | `str` | Yes | Plugin id in `{name}@{marketplace}` form. |
| `version` | `str \| None` | Yes | Plugin version string, or `None` when unversioned. |

## Returns

`Path`

Cache directory `cache/{marketplace}/{plugin}/{version}/`, relative to

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/e4c1ffe9ee63d7854147de490ca27495ef157a7b/libs/code/deepagents_code/plugins/store.py#L130)