YepCode Datastore
YepCode Datastore is a robust key-value storage system that is both simple and fast. It’s designed to empower your processes through accessible source code integration.
With YepCode Datastore, you can store and retrieve data within your processes and modules, facilitating information sharing across different executions. Unlock a myriad of possibilities, including:
- Preserving process states between executions (e.g., maintaining the last loaded date for use in subsequent executions of an ETL process).
- Efficient session management (e.g., performing a login only if your session has expired).
- Maintaining a shared team global state (e.g., tracking counters, execution usage, and more).
Manipulating Datastore values is accomplished through the following YepCode commands:
await yepcode.datastore.set("key", "value");
const value = await yepcode.datastore.get("key");
await yepcode.datastore.del("key");
// Get all keysconst allKeys = await yepcode.datastore.keys();
// Get keys matching a pattern (e.g., all keys starting with "user:")const userKeys = await yepcode.datastore.keys("user:*");
yepcode.datastore.set("key", "value")
value = yepcode.datastore.get("key")
yepcode.datastore.delete("key")
# Get all keysall_keys = yepcode.datastore.keys()
# Get keys matching a pattern (e.g., all keys starting with "user:")user_keys = yepcode.datastore.keys("user:*")