Skip to content

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:

Storing data
await yepcode.datastore.set("key", "value");
Retrieving data
const value = await yepcode.datastore.get("key");
Deleting data
await yepcode.datastore.del("key");
Listing keys
// Get all keys
const allKeys = await yepcode.datastore.keys();
// Get keys matching a pattern (e.g., all keys starting with "user:")
const userKeys = await yepcode.datastore.keys("user:*");