# Glob Functions

IoTIFY provides a simple, fast and persistent key-value storage that is private to your workspace and accessible to all your running jobs. The key-value storage could be used for multiple purposes, For example, to sync between multiple jobs, control the simulation behaviour dynamically or revert back from the last state of the device.&#x20;

The different functions that you can use to interact with the Glob are:

#### SET

```javascript
//requires a string key and a value which can be of any type
glob.set(key, value)

glob.set('key1', 55);
glob.set('key2', "Hello World");
glob.set('key3', {"Hello" : "World"});
```

#### GET

```javascript
//requires a string key as an argument
glob.get(key)

let val1 = glob.get('key1'); 
let val2 = glob.get('key2'); 
let val3 = glob.get('key3'); 

console.log("value 1: "+ val1)
console.log("value 2: "+ val2)
console.log("value 3: "+ JSON.stringify(val3))
```

{% code title="Response:" %}

```json
value 1: 55 value 2: Hello World value 3: {"Hello":"World"}
```

{% endcode %}

#### DELETE

```javascript
//requires a string key as an argument
glob.delete(key)

glob.delete('key1');
```
