MCPcopy
hub / github.com/actions/cache / getCacheState

Method getCacheState

src/stateProvider.ts:13–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12class StateProviderBase implements IStateProvider {
13 getCacheState(): string | undefined {
14 const cacheKey = this.getState(State.CacheMatchedKey);
15 if (cacheKey) {
16 core.debug(`Cache state/key: ${cacheKey}`);
17 return cacheKey;
18 }
19
20 return undefined;
21 }
22
23 // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function
24 setState = (key: string, value: string) => {};

Callers

nothing calls this directly

Calls 1

getStateMethod · 0.80

Tested by

no test coverage detected