for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Krenor\Prometheus\Storage\Repositories;
use Tightenco\Collect\Support\Collection;
class ApcuRepository extends SimpleRepository
{
/**
* {@inheritdoc}
*/
public function flush(): bool
return apcu_clear_cache();
}
protected function retrieve(string $key)
return apcu_fetch($key);
protected function store(string $key, Collection $collection): bool
return apcu_store($key, $collection);