Closed AlvaroVega closed 2 years ago
Based on node-cache stats API
API to get info about node cache stats: https://github.com/node-cache/node-cache#statistics-stats
curl -i -X GET http://localhost:11211/admin/cacheStats HTTP/1.1 200 OK X-Powered-By: Express fiware-correlator: 6386f32a-3f5f-4f57-8b05-813ce3ed6607 Content-Type: application/json; charset=utf-8 Content-Length: 265 ETag: W/"109-JPQLnurOZTITjopfP0LhKQSKm7A" Date: Wed, 18 May 2022 11:17:41 GMT Connection: keep-alive Keep-Alive: timeout=5
{"cacheSats":{"subservice":{"hits":0,"misses":0,"keys":0,"ksize":0,"vsize":0},"roles":{"hits":9,"misses":1,"keys":1,"ksize":34,"vsize":200},"user":{"hits":9,"misses":2,"keys":1,"ksize":183,"vsize":240},"validation":{"hits":9,"misses":1,"keys":1,"ksize":197,"vsize":6}}}
...but tests not yet passing
Based on node-cache stats API
API to get info about node cache stats: https://github.com/node-cache/node-cache#statistics-stats
curl -i -X GET http://localhost:11211/admin/cacheStats HTTP/1.1 200 OK X-Powered-By: Express fiware-correlator: 6386f32a-3f5f-4f57-8b05-813ce3ed6607 Content-Type: application/json; charset=utf-8 Content-Length: 265 ETag: W/"109-JPQLnurOZTITjopfP0LhKQSKm7A" Date: Wed, 18 May 2022 11:17:41 GMT Connection: keep-alive Keep-Alive: timeout=5
{"cacheSats":{"subservice":{"hits":0,"misses":0,"keys":0,"ksize":0,"vsize":0},"roles":{"hits":9,"misses":1,"keys":1,"ksize":34,"vsize":200},"user":{"hits":9,"misses":2,"keys":1,"ksize":183,"vsize":240},"validation":{"hits":9,"misses":1,"keys":1,"ksize":197,"vsize":6}}}