# Memory Configuration

It's a **map** that is nice. Essentially a configuration file that doesn't exist.

## Create

```java
ConfigurationSection section = new MemoryConfigurationSection();
```

## Read

{% tabs %}
{% tab title="Basic" %}
```yaml
key: "Value"
```

```java
String string = section.getString("key");
```

There are many methods for almost all types.
{% endtab %}

{% tab title="Default values" %}
```yaml
```

```java
String string section.getString("key", "Default value");
```

If the value doesn't exist or returns null, it will use the default value instead.
{% endtab %}

{% tab title="List | Number | String -> String" %}
```yaml
key: "Value"

or

key:
- "Element 1"
- "Element 2"
```

```java
//                                  (path, list joiner, default value)
String string = section.getAdaptedString("key", "\n", "Default Value");
```
{% endtab %}
{% endtabs %}

## Write

```java
section.set("key", "value");
```
