for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Krenor\Prometheus\Storage\Repositories;
use Memcached;
use Tightenco\Collect\Support\Collection;
class MemcachedRepository extends SimpleRepository
{
/**
* @var Memcached
*/
protected $memcached;
* MemcachedRepository constructor.
*
* @param Memcached $memcached
public function __construct(Memcached $memcached)
$this->memcached = $memcached;
}
* {@inheritdoc}
public function flush(): bool
return $this->memcached->flush();
protected function retrieve(string $key)
return $this->memcached->get($key);
protected function store(string $key, Collection $collection): bool
return $this->memcached->set($key, $collection);