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 InMemoryRepository extends SimpleRepository
{
protected Collection $items;
/**
* InMemoryRepository constructor.
*/
public function __construct()
$this->items = new Collection;
}
* {@inheritdoc}
protected function retrieve(string $key): mixed
return $this->items->get($key);
protected function store(string $key, Collection $collection): bool
$this->items->put($key, $collection);
return true;
public function flush(): bool