|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Internet and Network > MCP. - MCP (Model-Context Protocol) server operations > Memory Bank - Commands for storing and recalling data > MCP Commands - Memory Bank |
MiniRobot Language (MRL) - MCP Memory Bank
MEM.S
Simple temporary store
Shortcut for: MEM.STO|$$KEY|$$VALUE|TEMP
Syntax
MEM.S|$$KEY|$$VALUE
Parameters
$$KEY
The unique name to identify this stored value. Keys are case-sensitive.
$$VALUE
The text value to store temporarily.
Return Value
None. The value is stored temporarily in memory.
Description
MEM.S is a shortcut command that stores a value temporarily. It is equivalent to using MEM.STO with the TEMP parameter.
The stored value will be available only during the current MCP server session. When the server restarts, all values stored with MEM.S will be lost.
Examples
Example 1: Quick temporary storage
' Store working data temporarily
MEM.S|$$TempResult|Calculated value 42
Example 2: Same as MEM.STO with TEMP
' These two lines are equivalent:
MEM.S|$$Data|Some data
MEM.STO|$$Data|Some data|TEMP
Remarks
• MEM.S is ideal for temporary session data, caching, or working variables.
• For permanent storage that survives restarts, use MEM.STO with PERM.
• The key name is case-sensitive.
• The Memory Bank feature requires the RESOURCES capability in MCP server configuration.
Related Commands
• MEM.R - Simple recall (paired with MEM.S)
• MEM.STO - Store with persistence option