public function clear(string $primary_key, $sub_key = null, int $delay = 0): bool
    {
        if (!$this->enabled) {
            return false; // Not possible.
        }
        if (!isset($sub_key)) {
            $key = $this->nspKey($primary_key);
        } else {
            $key = $this->key($primary_key, $sub_key);
        }
        return $key && $this->Pool->delete($key, $delay);
    }
public function clear(string $primary_key, $sub_key = null, int $delay = 0): bool
    {
        if (!$this->enabled) {
            return false; // Not possible.
        }
        if (!isset($sub_key)) {
            $key = $this->nspKey($primary_key);
        } else {
            $key = $this->key($primary_key, $sub_key);
        }
        return $key && $this->Pool->delete($key, $delay);
    }
public function clear ( string $ primary_key , $ sub_key = null , int $ delay = 0 ) : bool { if ( ! $ this -> enabled ) { return false ; // Not possible. } if ( ! isset ( $ sub_key ) ) { $ key = $ this -> nspKey ( $ primary_key ) ; } else { $ key = $ this -> key ( $ primary_key , $ sub_key ) ; } return $ key && $ this -> Pool -> delete ( $ key , $ delay ) ; }
Clear the cache.

@since 151216 Memcache utils.

@param string          $primary_key Primary key.
@param string|int|null $sub_key     Sub-key (optional).
@param int             $delay       Delay (in seconds).

@return bool True on success.
Clear the cache .