Skip to content

Commit

Permalink
use app_cache while waiting for a better name
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasVHG committed Feb 26, 2025
1 parent dfdae95 commit b28b71b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/Authentication/AuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function () use ($container): RequestAuthenticatorMiddleware {
new CachedApiKeyAuthenticator(
new CultureFeedApiKeyAuthenticator($container->get(ConsumerReadRepository::class)),
CacheFactory::create(
$container->get('temporary_cache'),
$container->get('app_cache'),
'api_key',
86400
)
Expand Down Expand Up @@ -162,7 +162,7 @@ function () use ($container): ConsumerReadRepository {
return new CachedConsumerReadRepository(
new CultureFeedConsumerReadRepository($container->get('culturefeed'), true),
CacheFactory::create(
$container->get('temporary_cache'),
$container->get('app_cache'),
'culturefeed_consumer',
86400
)
Expand Down
6 changes: 3 additions & 3 deletions app/Cache/CacheServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ protected function getProvidedServiceNames(): array
{
return [
'cache',
'temporary_cache',
'app_cache',
];
}

Expand All @@ -36,9 +36,9 @@ public function register(): void
);

$container->addShared(
'temporary_cache',
'app_cache',
new Client(
$container->get('config')['cache']['temporary_cache']
$container->get('config')['cache']['app_cache']
)
);
}
Expand Down
2 changes: 1 addition & 1 deletion app/Keycloak/KeycloakServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function () use ($container): CachedUserIdentityResolver {
$container->get(ManagementTokenProvider::class)->token()
),
CacheFactory::create(
$container->get('temporary_cache'),
$container->get('app_cache'),
'user_identity',
86400
)
Expand Down

0 comments on commit b28b71b

Please sign in to comment.