Create a key-value memory store
Usage
memory(backend = c("local", "file"), path = NULL)Note
The path parameter for file backends should be a trusted value.
Do not derive it from LLM output or untrusted user input.
See also
Other persistence:
checkpointer()