Mechanic
🧑‍💻 Get Mechanic!🧑‍🔧 Task library🗳 Task requests🦾 Mechanic.dev
Search
⌃K
Links
⛩
Introduction
💯
status.mechanic.dev
🙋
"I need something custom!"
🤓
Hire a Mechanic developer
Resources
⬇
Install Mechanic
🧑💻
Task library
🚀
Slack community
🤝
Partner directory
Tutorials
Core Concepts
Events
Tasks
Actions
Runs
Interacting with Shopify
Platform
🔆
Policies
Cache
Email
Error handling
Events
GraphQL
Integrations
Liquid
Basics
Filters
Keyword literals
Mechanic objects
Action object
Cache object
Event object
Options object
Task object
Shopify REST Admin API
Mechanic tags
Liquid console
Shopify
Webhooks
Techniques
Preventing action loops
Writing a high-quality task
Tagging Shopify resources
Debouncing events
Responding to action results
Working with external APIs
Finding a resource ID
Migrating templates from Shopify to Mechanic
Securing Mechanic webhooks
Monitoring Mechanic
FAQ
Powered By GitBook

Cache object

The cache object is used for retrieving values stored in the shop's Mechanic cache. For more on this, see Using the cache.

How to access it

  • Use {{ cache["some_key"] }} or {{ cache.some_key }} in any task script
  • Use {% for keyval in cache %} to iterate through the keys and values in your account's cache

Related articles

  • ​The "cache" action​
  • ​Using cache endpoints to share data​
  • ​Using the cache​
Previous
Action object
Next
Event object
Last modified 2yr ago
On this page
How to access it
Related articles