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

Class StateProviderBase

src/stateProvider.ts:12–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
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) => {};
25
26 // eslint-disable-next-line @typescript-eslint/no-unused-vars
27 getState = (key: string) => "";
28}
29
30export class StateProvider extends StateProviderBase {
31 setState = core.saveState;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…