Error in user YAML: (<unknown>): mapping values are not allowed in this context at line 10 column 12
---
# Storage
The storage interface for the Logto client. Logto client will use this
interface to store and retrieve the logto session data.
Usually this should be implemented as a persistent storage, such as a
session or a database, since the page will be redirected to Logto and
then back to the original page.
- Full name: `\Logto\Sdk\Storage\Storage`
## Methods
### get
Get the stored string for the given key, return None if not found.
```php
public get(\Logto\Sdk\Storage\StorageKey $key): ?string
```
**Parameters:**
| Parameter | Type | Description |
| --------- | --------------------------------- | ----------- |
| `$key` | **\Logto\Sdk\Storage\StorageKey** | |
---
Set the stored value (string or None) for the given key.
public set(\Logto\Sdk\Storage\StorageKey $key, ?string $value): voidParameters:
| Parameter | Type | Description |
|---|---|---|
$key |
\Logto\Sdk\Storage\StorageKey | |
$value |
?string |
Delete the stored value for the given key.
public delete(\Logto\Sdk\Storage\StorageKey $key): voidParameters:
| Parameter | Type | Description |
|---|---|---|
$key |
\Logto\Sdk\Storage\StorageKey |
Automatically generated from source code comments using phpDocumentor and saggre/phpdocumentor-markdown