MemoryStorage Class
- java.
lang. Object - com.
microsoft. bot. builder. MemoryStorage
- com.
Implements
public class MemoryStorage
implements Storage
A storage layer that uses an in-memory dictionary.
Constructor Summary
| Constructor | Description |
|---|---|
| MemoryStorage() |
Initializes a new instance of the Memory |
| MemoryStorage(Map<String,JsonNode> values) |
Initializes a new instance of the Memory |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.util.concurrent.CompletableFuture<java.lang.Void> |
delete(String[] keys)
Deletes storage items from storage. |
| java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,java.lang.Object>> |
read(String[] keys)
Reads storage items from storage. |
| java.util.concurrent.CompletableFuture<java.lang.Void> |
write(Map<String,Object> changes)
Writes storage items to storage. |
Methods inherited from java.lang.Object
Constructor Details
MemoryStorage
public MemoryStorage()
Initializes a new instance of the MemoryStorage class.
MemoryStorage
public MemoryStorage(Map
Initializes a new instance of the MemoryStorage class.
Parameters:
Method Details
delete
public CompletableFuture
Deletes storage items from storage.
Parameters:
Returns:
read
public CompletableFuture
Reads storage items from storage.
Parameters:
Returns:
write
public CompletableFuture
Writes storage items to storage.
Parameters:
Returns: