Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1.3 KB

File metadata and controls

31 lines (25 loc) · 1.3 KB

nx-remotecache-redis

This is a task runner for @nrwl/nx https://nx.dev/react which uses a redis database as a remote caching storage. Read more about the benefits in the nx documentations [https://nx.dev/using-nx/caching#computation-caching]

This package was built with nx-remotecache-custom 🔥

Setup

npm install -D @nx-helpers/nx-remote-cache-redis
Parameter Description Environment Variable nx.json
Redis URL The url to connect to redis for example: redis://<user>:<password>@127.0.0.1:6379 NX_CACHE_REDIS_URL url
Redis Expire Expire time in seconds to automaticaly delete keys NX_CACHE_REDIS_EXPIRE expire
{
  "tasksRunnerOptions": {
    "default": {
      "runner": "@nx-helpers/nx-remote-cache-redis",
      "options": {
        // All of the redis specific options can also be inserted via environment variables!
        "url": "redis://127.0.0.1:6379",
        "cacheableOperations": ["build", "test", "lint", "e2e"]
      }
    }
  }
}