本文整理汇总了PHP中Memcached::getDelayedByKey方法的典型用法代码示例。如果您正苦于以下问题:PHP Memcached::getDelayedByKey方法的具体用法?PHP Memcached::getDelayedByKey怎么用?PHP Memcached::getDelayedByKey使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Memcached
的用法示例。
在下文中一共展示了Memcached::getDelayedByKey方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getDelayedByKey
/**
* Request multiple keys without blocking from a specified server.
*
* @link http://www.php.net/manual/en/memcached.getdelayed.php
*
* @param string $server_key The key identifying the server to store the value on.
* @param string|array $keys Array or string of key(s) to request.
* @param string|array $groups Array or string of group(s) for the key(s). See buildKeys for more on how these are handled.
* @param bool $with_cas Whether to request CAS token values also.
* @param null $value_cb The result callback or NULL.
* @return bool Returns TRUE on success or FALSE on failure.
*/
public function getDelayedByKey($server_key, $keys, $groups = 'default', $with_cas = false, $value_cb = NULL)
{
$derived_keys = $this->buildKeys($keys, $groups);
return $this->m->getDelayedByKey($server_key, $derived_keys, $with_cas, $value_cb);
}