Initial commit
This commit is contained in:
23
src/Protocol/Command/Components/ContainsUncompressed.php
Normal file
23
src/Protocol/Command/Components/ContainsUncompressed.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Toalett\Redis\Timeseries\Protocol\Command\Components;
|
||||
|
||||
trait ContainsUncompressed
|
||||
{
|
||||
private bool $uncompressed = false;
|
||||
|
||||
public function uncompressed(): self
|
||||
{
|
||||
$this->uncompressed = true;
|
||||
return $this;
|
||||
}
|
||||
|
||||
protected function appendUncompressed(array $command): array
|
||||
{
|
||||
if (true === $this->uncompressed) {
|
||||
$command[] = 'UNCOMPRESSED';
|
||||
}
|
||||
|
||||
return $command;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user