Skip to content

Commit 4164869

Browse files
authored
feat: add cache to api-gateway in-front of stats endpoint (#72)
* feat: add cache on stats endpoint * cache settigns key
1 parent 6d1018f commit 4164869

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

serverless.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ custom:
1818
sentryDsn:
1919
dev: ''
2020
prod: 'https://[email protected]/1366866'
21+
stageSettings:
22+
CacheClusterEnabled: true
23+
CacheClusterSize: '0.5'
24+
MethodSettings:
25+
- CachingEnabled: true
26+
- HttpMethod: GET
27+
ResourcePath: "/stats"
28+
CachingEnabled: true
29+
CacheTtlInSeconds: 3600
2130

2231
provider:
2332
name: aws

0 commit comments

Comments
 (0)