mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
RedisCache: update hashkey technique
This commit is contained in:
parent
54c4c6b063
commit
034fcf0b74
@ -19,7 +19,7 @@ class RedisCache
|
||||
if (!\in_array($request->segments()[0], ['v1', 'v2', 'v3'])) {
|
||||
$requestType = $request->segments()[0];
|
||||
}
|
||||
$hashKey = "request:{$requestType}:{$key}";
|
||||
$hashKey = "request:{$requestType}:" . sha1($key);
|
||||
$cached = true;
|
||||
|
||||
if (!app('redis')->exists($hashKey)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user