Update BL star rating key
This commit is contained in:
parent
858857cc2e
commit
3820358dfd
@ -18,7 +18,7 @@ export default async function handler(req, res) {
|
|||||||
const exists = await RedisUtils.exists(`${KEY}${mapHash}`);
|
const exists = await RedisUtils.exists(`${KEY}${mapHash}`);
|
||||||
if (exists) {
|
if (exists) {
|
||||||
const data = await RedisUtils.getValue(
|
const data = await RedisUtils.getValue(
|
||||||
`${KEY}-${difficulty}-${characteristic}-${mapHash}`
|
`${KEY}${difficulty}-${characteristic}-${mapHash}`
|
||||||
);
|
);
|
||||||
res.setHeader("Cache-Status", "hit");
|
res.setHeader("Cache-Status", "hit");
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ export default async function handler(req, res) {
|
|||||||
}
|
}
|
||||||
const json = await data.json();
|
const json = await data.json();
|
||||||
RedisUtils.setValue(
|
RedisUtils.setValue(
|
||||||
`${KEY}-${difficulty}-${characteristic}-${mapHash}`,
|
`${KEY}${difficulty}-${characteristic}-${mapHash}`,
|
||||||
json.difficulty.stars
|
json.difficulty.stars
|
||||||
);
|
);
|
||||||
res.setHeader("Cache-Status", "miss");
|
res.setHeader("Cache-Status", "miss");
|
||||||
|
Reference in New Issue
Block a user