Add logic for modules caching

Such files as cache-restore.ts, cache-utils.ts, constants.ts,
cache-save.ts we added. Main.ts file now incorporates logic for using
files mentioned above.
This commit is contained in:
Ivan Zosimov (Akvelon INC) 2022-02-21 16:21:14 +03:00
parent 5ba3482d38
commit 25a133c257
7 changed files with 198 additions and 2 deletions

8
src/constants.ts Normal file
View file

@ -0,0 +1,8 @@
export enum State {
CachePrimaryKey = 'CACHE_KEY',
CacheMatchedKey = 'CACHE_RESULT'
}
export enum Outputs {
CacheHit = 'cache-hit'
}