# In-Memory DB 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);
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://inscada.gitbook.io/ins/master/programing/apis/in-memmory-db-functions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
