> For the complete documentation index, see [llms.txt](https://inscada.gitbook.io/ins/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://inscada.gitbook.io/ins/master/programing/apis/in-memmory-db-functions.md).

# In-Memory DB Functions

In-Memmory Database Functions

In-Memmory DB Fonksiyonları, hafıza bölgesine nesne yazma/okuma işlemlerini yapmak için kullanılır.

## Get Object

#### Object ins.getGlobalObject(String name)

Hafızadaki bir nesneyi okur.

name : Nesne ismi.

Return Value : Bir JSON nesnesi geri döndürür.

#### Syntax

```javascript
var obj=ins.getGlobalObject("My_Obj");
if (obj!==null) {
  var item="Previous_Value";
    if (obj[item]!==null) {
      ins.notify("info","Get Global Object",obj[item]);
   }
}

return obj[item];
```

## Set Object

#### Object ins.setGlobalObject(String name)

Hafızaya bir nesne yazar.

name : Nesne ismi.

Return Value : Herhangi bir değer geri döndürmez.

#### Syntax

```javascript
var My_Obj={};
My_Obj.Previous_Value=0;
My_Obj.Message="Hello World";
ins.setGlobalObject("My_Obj",My_Obj);
```
