Closed angelcervera closed 4 years ago
Hi @angelcervera,
You can set the clusterSize
on the whole instance under global settings:
custom:
apiGatewayCaching:
enabled: true
clusterSize: '13.5'
You can't define it for each function, because there's only one cache cluster for all functions associated with this Rest API.
I'll check it tomorrow. Pretty sure this is the reason. In that case, I will update the documentation and I will create a PR. ok?
I think the documentation is accurate, but I'm curious how you'd like to improve it. Feel free to raise a PR, if you wish.
The proposal in the PR. https://github.com/DianaIonita/serverless-api-gateway-caching/pull/62
This is the config that I'm using:
As result, the cache is enable correctly but the cache capacity is 0.5 instead 13.5
https://stackoverflow.com/questions/58137023/serverless-api-gateway-caching-plugin-is-not-setting-the-cache-size