---
title: Key
slug: aura/key
docTags: 
createdAt: 2025-07-07T20:39:55.891Z
---

Utilizado para guardar valores em memória para utilização em runtime.

## Atalhos

- **[Get](docId:9IOuLZwnuOtFEhLpN5aep)**
- **[Set](docId:9IOuLZwnuOtFEhLpN5aep)**
- **[Remove](docId:9IOuLZwnuOtFEhLpN5aep)**

***

### Métodos

### Get

```lua
-- @param name The name of the key storaged
-- @return the value associated with the key or an empty string if the key does not exists 
get_key(name)
```

```lua
-- example usage:

local my_value = get_key("my_key")
```

### Set

```lua
-- @param key The key name to be storaged
-- @param value The value to be storaged
set_key(key, value)
```

```lua
-- example usage:

set_key("my_key", 123)
```

### Remove

```lua
-- @param name The name of the key to be removed
-- @return the value the value that was removed or an empty string if the key does not exists 
remove_key(name)
```

```lua
-- example usage:

local removed_value = remove_key("my_key")
```

