( isSaaS: boolean, workspace: string )
| 8 | // database / environment names and route paths are unique only within a |
| 9 | // workspace). Returns "" for self-host, the workspace name for SaaS. |
| 10 | export const workspaceCacheScope = ( |
| 11 | isSaaS: boolean, |
| 12 | workspace: string |
| 13 | ): string => (isSaaS && workspace ? workspace : ""); |
| 14 | |
| 15 | // Joins a base key with an optional workspace scope segment and the rest. |
| 16 | // When scope is "" the key is byte-identical to the pre-scoping form (so |
no outgoing calls
no test coverage detected