Initial commit

This commit is contained in:
2020-12-28 23:32:37 +01:00
commit 66b18a024d
56 changed files with 3881 additions and 0 deletions

View 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;
}
}