4 Commits

Author SHA1 Message Date
Leo Khoa
6196b5f09f Merge pull request #69 from leokhoa/dev
Set default "DownloadWaitTime" to 10 seconds
2019-02-24 11:43:22 +07:00
Leo Khoa
75c0d392e1 Set default "DownloadWaitTime" to 10 seconds
https://forum.laragon.org/topic/1320/sort-out-the-download-issue-with-curl-in-quick-app-and-quick-add
2019-02-24 11:42:57 +07:00
Leo Khoa
abaa772460 Merge pull request #65 from stijnvdb88/master
add support for memcached flush_all command
2019-02-16 10:30:44 +07:00
Stijn Van der Borght
1d23a840b3 add support for memcached flush_all command 2019-02-15 16:31:42 +00:00
2 changed files with 23 additions and 0 deletions

View File

@@ -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
* *

Binary file not shown.