src/Client.php
public function compaction($revision, $physical = false)
    {
        $params = [
            'revision' => $revision,
            'physical' => $physical,
        ];

        $body = $this->request(self::URI_COMPACTION, $params);

        return $body;
    }
public function compaction($revision, $physical = false)
    {
        $params = [
            'revision' => $revision,
            'physical' => $physical,
        ];

        $body = $this->request(self::URI_COMPACTION, $params);

        return $body;
    }
public function compaction ( $ revision , $ physical = false ) { $ params = [ 'revision' => $ revision , 'physical' => $ physical , ] ; $ body = $ this -> request ( self :: URI_COMPACTION , $ params ) ; return $ body ; }
Compact compacts the event history in the etcd key-value store.
The key-value\nstore should be periodically compacted
or the event history will continue to grow\nindefinitely.

@param int $revision

@param bool|false $physical

@return array
@throws \GuzzleHttp\Exception\BadResponseException
Compact compacts the event history in the etcd key - value store . The key - value \ nstore should be periodically compacted or the event history will continue to grow \ nindefinitely .