New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@nexrender/action-cache

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nexrender/action-cache

Cache your template source to a specified location and reuse it on subsequent runs

latest
npmnpm
Version
1.60.9
Version published
Maintainers
1
Created
Source

Action: Cache

Cache your template source to a specified location and reuse it on subsequent runs

Installation

npm i -g @nexrender/action-cache

Usage

When creating your render job provide this module in both of the predownload and postdownload actions:

Additional Params

  • ttl (optional): a time-to-live in milliseconds for which after that the cached item is invalidated
  • cacheAssets (optional): a boolean value that if true will cache the assets used by a job as well. Note that assets with the same filename will overwrite each other in the cache so should be avoided if using assets cache.
// job.json
{
    "actions": {
        "predownload": [
            {
                "module": "@nexrender/action-cache",
                "cacheDirectory": "~/cache",
                "ttl": 3600000
            }
        ],
        "postdownload": [
            {
                "module": "@nexrender/action-cache",
                "cacheDirectory": "~/cache"
            }
        ],
    }
}

FAQs

Package last updated on 17 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts