mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
chore: cache namespace
This commit is contained in:
parent
8cac5219e3
commit
670157def1
2 changed files with 3 additions and 3 deletions
|
@ -25,7 +25,7 @@ class ITunesService
|
|||
$hash = md5(serialize($request->query()));
|
||||
|
||||
return $this->cache->remember(
|
||||
"itunes:track:$hash",
|
||||
"itunes.track.$hash",
|
||||
now()->addWeek(),
|
||||
function () use ($request): ?string {
|
||||
$response = $this->connector->send($request)->object();
|
||||
|
|
|
@ -50,7 +50,7 @@ class LastfmService implements MusicEncyclopedia
|
|||
|
||||
return attempt_if(static::enabled(), function () use ($artist): ?ArtistInformation {
|
||||
return $this->cache->remember(
|
||||
"lastfm:artist:$artist->id",
|
||||
"lastfm.artist.$artist->id",
|
||||
now()->addWeek(),
|
||||
fn () => $this->connector->send(new GetArtistInfoRequest($artist))->dto()
|
||||
);
|
||||
|
@ -65,7 +65,7 @@ class LastfmService implements MusicEncyclopedia
|
|||
|
||||
return attempt_if(static::enabled(), function () use ($album): ?AlbumInformation {
|
||||
return $this->cache->remember(
|
||||
"lastfm:album:$album->id",
|
||||
"lastfm.album.$album->id",
|
||||
now()->addWeek(),
|
||||
fn () => $this->connector->send(new GetAlbumInfoRequest($album))->dto()
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue