# ivuorinen/actions/common-cache ## Common Cache ### Description Standardized caching strategy for all actions ### Inputs | name | description | required | default | |----------------|------------------------------------------------------|----------|---------| | `type` |

Type of cache (npm, composer, go, pip, etc.)

| `true` | `""` | | `paths` |

Paths to cache (comma-separated)

| `true` | `""` | | `key-prefix` |

Custom prefix for cache key

| `false` | `""` | | `key-files` |

Files to hash for cache key (comma-separated)

| `false` | `""` | | `restore-keys` |

Fallback keys for cache restoration

| `false` | `""` | | `env-vars` |

Environment variables to include in cache key

| `false` | `""` | ### Outputs | name | description | |---------------|-----------------------------| | `cache-hit` |

Cache hit indicator

| | `cache-key` |

Generated cache key

| | `cache-paths` |

Resolved cache paths

| ### Runs This action is a `composite` action. ### Usage ```yaml - uses: ivuorinen/actions/common-cache@main with: type: # Type of cache (npm, composer, go, pip, etc.) # # Required: true # Default: "" paths: # Paths to cache (comma-separated) # # Required: true # Default: "" key-prefix: # Custom prefix for cache key # # Required: false # Default: "" key-files: # Files to hash for cache key (comma-separated) # # Required: false # Default: "" restore-keys: # Fallback keys for cache restoration # # Required: false # Default: "" env-vars: # Environment variables to include in cache key # # Required: false # Default: "" ```