nx-remotecache-redis
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

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-remotecache-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-remotecache-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"]
      }
    }
  }
}

Readme

Keywords

Package Sidebar

Install

npm i nx-remotecache-redis

Weekly Downloads

50

Version

2.0.2

License

MIT

Unpacked Size

4.58 kB

Total Files

4

Last publish

Collaborators

  • sqlexception