mirror of https://github.com/hykilpikonna/AquaDX
[F] Fix cache key
parent
daa8de203b
commit
0632213c8b
|
@ -43,7 +43,7 @@ abstract class MeowApi(val serialize: (String, Any?) -> String) {
|
|||
if (nextIndex == -1) return@api fn().let { mapOf("userId" to uid, "length" to it.size, key to it) + add }
|
||||
|
||||
// Try to get cache
|
||||
val cacheKey = "$this:$uid:$add"
|
||||
val cacheKey = "$key:$uid:$add"
|
||||
val list = pageCache.getOrPut(cacheKey) { fn().let {
|
||||
if (it.size > maxCount) millis() to it
|
||||
else return@api mapOf("userId" to uid, "length" to it.size, "nextIndex" to -1, key to it) + add
|
||||
|
|
Loading…
Reference in New Issue