New vs old config syntax for caching dependencies


I noticed the new and the old config syntax can both work when defining caching dependencies. For example:

new style:

      - restore_cache:
          - webpacker-dependencies-{{ checksum "yarn.lock" }}

old style:

    - type: cache-restore
      name: Restore yarn cache
      key: webpacker-dependencies-{{ checksum "yarn.lock" }}

Is the new style preferred? Are there something one can do using the new syntax that the old can’t do?


This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.