geolocation api rate-limit: improve the delay mechanism to be sure to don't hit provider more than 1 time/s, add memory-cache to save response data.

This commit is contained in:
sedum
2023-01-19 01:29:24 +01:00
parent ebb3fcbd93
commit 6ee96fb07c
5 changed files with 115 additions and 67 deletions

View File

@@ -62,6 +62,7 @@
"linkifyjs": "4.0.2",
"lodash": "^4.17.21",
"mariadb": "^3.0.1",
"memory-cache": "^0.2.0",
"microformat-node": "^2.0.1",
"minify-css-string": "^1.0.0",
"mkdirp": "^1.0.4",