Skip to content

Commit

Permalink
fix(cache): use max memory ttl possible
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainLanz committed Dec 15, 2024
1 parent 3ab59b4 commit 7407fc8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import env from '#start/env';
import vine from '@vinejs/vine';
import cache from '@adonisjs/cache/services/main';
import { Secret } from '@adonisjs/core/helpers';
import vine from '@vinejs/vine';
import env from '#start/env';

export class TwitchAppTokenRetrieve {
static validator = vine.compile(
Expand Down Expand Up @@ -34,7 +34,7 @@ export class TwitchAppTokenRetrieve {
return data.access_token;
},
{
ttl: '50d',
ttl: 2 ** 32 + 5000,
}
);

Expand Down

0 comments on commit 7407fc8

Please sign in to comment.