> For the complete documentation index, see [llms.txt](https://stash-it.gitbook.io/stash-it/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stash-it.gitbook.io/stash-it/api/adapter/buildkey-key.md).

# buildKey(key)

Builds a key.

You might ask, why there is such a method when you already provide a key? Well, this has been partially answered in [keys](/stash-it/basic-structure.md#keys-are-built) docs.

### **Arguments**

1. `key` *(string)*: A string used to store an item under in cache.

### **Returns**

*(string)*: Built key.

### Example

```javascript
const key = adapter.buildKey('key');
```
