Using the cache

Each shop has access to a simple key-value cache, which may be written to using "cache" actions, and read from using the cache object and cache endpoints.

The cache is intended for temporary data storage. As such, each stored value is persisted for a maximum of 60 days. (To set a shorter expiration period, use "cache" action's "ttl" option.)

The cache is not intended for large value storage. As such, each stored value is limited to a maximum of 256 kilobytes.

For storing larger values, consider using the "ftp" action to upload data to your own storage service, possibly using a service like Couchdrop as a intermediary. To read larger values in your task, use the "http" action to perform a GET request, then respond to the action's results.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.