protected function setCompression(bool $useCompression)
    {
        if ($this->memcache instanceof \Memcached) {
            $this->memcache->setOption(\Memcached::OPT_COMPRESSION, $useCompression);
            return;
        }
        if ($useCompression === true) {
            $this->flags ^= MEMCACHE_COMPRESSED;
        } else {
            $this->flags &= ~MEMCACHE_COMPRESSED;
        }
    }
protected function setCompression(bool $useCompression)
    {
        if ($this->memcache instanceof \Memcached) {
            $this->memcache->setOption(\Memcached::OPT_COMPRESSION, $useCompression);
            return;
        }
        if ($useCompression === true) {
            $this->flags ^= MEMCACHE_COMPRESSED;
        } else {
            $this->flags &= ~MEMCACHE_COMPRESSED;
        }
    }
protected function setCompression ( bool $ useCompression ) { if ( $ this -> memcache instanceof \ Memcached ) { $ this -> memcache -> setOption ( \ Memcached :: OPT_COMPRESSION , $ useCompression ) ; return ; } if ( $ useCompression === true ) { $ this -> flags ^= MEMCACHE_COMPRESSED ; } else { $ this -> flags &= ~ MEMCACHE_COMPRESSED ; } }
Setter for compression flags bit

@param boolean $useCompression
@return void
@api
Setter for compression flags bit