Skip to content

Commit

Permalink
renamed cache handlers, expand caches
Browse files Browse the repository at this point in the history
  • Loading branch information
killua-eu committed Jan 21, 2025
1 parent 61d473f commit d2f6973
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Includes/container.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use Monolog\Handler\DeduplicationHandler;
use Ramsey\Uuid\Uuid;

$container->set('fscache', function () {
$container->set('filesCache', function () {
try {
$path = $_ENV['DATAPATH'] . '/' . basename(__ROOT__) . '/cache/psr16';
CacheManager::setDefaultConfig(new ConfigurationOption([
Expand All @@ -33,9 +33,9 @@
}
});

$container->set('memcache', function () {
$container->set('apcuCache', function () {
CacheManager::setDefaultConfig(new ConfigurationOption([
"defaultTtl" => 60,
"defaultTtl" => 600,
]));
return new Psr16Adapter('apcu');
});
Expand Down

0 comments on commit d2f6973

Please sign in to comment.