Stash
What is Stash?
Stash is a key-value store that you can use to power your B2B integration or EDI workflow. Use it to track documents processed, increment control numbers, or reference lookup tables, all using a simple API. There are no servers, clusters, networking, or replication to manage.
What can Stash be used for?
Common use cases for Stash include:
- Complete an end-to-end EDI integration after you have configured Stedi Core for a new trading partner. For example, you can use Stash to configure where you want to send processed data.
- Extend an EDI integration. For example, you might want to store information extracted from documents or APIs for later use, such as inventory or price catalogs.
- Store large mapping tables – for example, a directory with millions of entries that map vendor SKUs to internal SKUs.
How does Stash work?
- Create keyspace. Create a keyspace in which to store key-value pairs.
- Get keyspace. See information about a keyspace.
- Delete keyspace. Remove a keyspace.
- List keyspaces. List of your existing keyspaces.
- Set value. Add or update a key-value pair.
- Get value. Retrieve the current value of a given key.
- Delete value. Remove a key-value pair from a keyspace.
- List values. Retrieve a list of key-value pairs from a keyspace.
value
can be a valid JSON value of type:string
number
- see limits for numeric constraints.boolean
array
object
Read consistency
GetValue
, ListValues
) operations are strongly consistent. Reads always return the most up-to-date data, reflecting the updates from all prior write (SetValue
, DeleteValue
) operations that were successful.Ordering
ListValues
operation, there is no guarantee on the order of results returned.Examples
Feedback
Have an idea for something we could improve? Page not clear? We love feedback - send us a message.