Skip to content

Commit

Permalink
feat: add cache to api-gateway in-front of stats endpoint (#72)
Browse files Browse the repository at this point in the history
* feat: add cache on stats endpoint

* cache settigns key
  • Loading branch information
jakebolam authored Jan 21, 2019
1 parent 6d1018f commit 4164869
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ custom:
sentryDsn:
dev: ''
prod: 'https://e950ab524cde4682a740c218c15a461d@sentry.io/1366866'
stageSettings:
CacheClusterEnabled: true
CacheClusterSize: '0.5'
MethodSettings:
- CachingEnabled: true
- HttpMethod: GET
ResourcePath: "/stats"
CachingEnabled: true
CacheTtlInSeconds: 3600

provider:
name: aws
Expand Down

0 comments on commit 4164869

Please # to comment.