Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6196b5f09f | ||
|
|
75c0d392e1 | ||
|
|
abaa772460 | ||
|
|
1d23a840b3 |
@@ -529,6 +529,29 @@ class Memcached
|
|||||||
return $newVal;
|
return $newVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Flush the cache
|
||||||
|
*
|
||||||
|
* @return boolean
|
||||||
|
*/
|
||||||
|
public function flush()
|
||||||
|
{
|
||||||
|
$this->writeSocket('flush_all') ;
|
||||||
|
|
||||||
|
$s = $this->readSocket();
|
||||||
|
|
||||||
|
if ('OK' == $s) {
|
||||||
|
$this->resultCode = Memcached::RES_SUCCESS;
|
||||||
|
$this->resultMessage = '';
|
||||||
|
return true;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$this->resultCode = Memcached::RES_FAILURE;
|
||||||
|
$this->resultMessage = 'Flush fail.';
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Write data to socket
|
* Write data to socket
|
||||||
*
|
*
|
||||||
|
|||||||
BIN
laragon.exe
BIN
laragon.exe
Binary file not shown.
Reference in New Issue
Block a user