---
id: "M:cAlgo.API.LocalStorage.Reload(cAlgo.API.LocalStorageScope)"
kind: "method"
type: "T:cAlgo.API.LocalStorage"
url: "https://help.ctrader.com/ctrader-algo/references/Localstorage/LocalStorage/Reload/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# LocalStorage.Reload

Member of [LocalStorage](https://help.ctrader.com/ctrader-algo/references/Localstorage/LocalStorage/index.md).

## Reload(LocalStorageScope localStorageScope)

Reloads all values from the disk. When calling this method, unsaved pending changes may be lost. To avoid losing information, call the Flush() method first.

Environments: Desktop supported · CLI supported · Cloud not supported.

- Cloud: Does nothing and reports no error; in-memory values are kept unchanged.

C#:

```csharp
void Reload(LocalStorageScope localStorageScope)
```

Python:

```python
api.LocalStorage.Reload(localStorageScope: LocalStorageScope) -> None
```

### Parameters

- `localStorageScope` (`LocalStorageScope`, Python `LocalStorageScope`): The storage scope to reload

### Examples

C#:

```csharp
LocalStorage.Reload(LocalStorageScope.Device);
Print("Value saved by another instance: {0}", LocalStorage.GetString("Last Signal", LocalStorageScope.Device));
```

Python:

```python
api.LocalStorage.Reload(LocalStorageScope.Device)
api.Print(f"Value saved by another instance: {api.LocalStorage.GetString('Last Signal', LocalStorageScope.Device)}")
```

