位置: 编程技术 - 正文
推荐整理分享PHP:Memcached::touchByKey()的用法_Memcached类,希望有所帮助,仅作参考,欢迎阅读内容。
文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!
(PECL memcached >= 2.0.0)
Memcached::touchByKey — Set a new expiration on an item on a specific server
说明 public bool Memcached::touchByKey ( string $server_key , string $key , int $expiration )Memcached::touchByKey() is functionally equivalent to Memcached::touch(), except that the free-form server_key can be used to map the key to a specific server.
参数server_key
本键名用于识别储存和读取值的服务器。没有将实际的键名散列到具体的项目,而是在决定与哪一个 memcached 服务器通信时将其散列为服务器键名。这使得关联的项目在单一的服务上被组合起来以提高多重操作的效率。
key用于存储值的键名。
expiration到期时间,默认为 0。 更多信息请参见到期时间。
返回值成功时返回 TRUE, 或者在失败时返回 FALSE。 如需要则使用 Memcached::getResultCode()。
参见Memcached::touch() - Set a new expiration on an item
PHP:Memcached::touch()的用法_Memcached类 Memcached::touch(PECLmemcached=2.0.0)Memcached::touchSetanewexpirationonanitem说明publicboolMemcached::touch(string$key,int$expiration)Memcached::touch()setsanewexpirationvalueonthegivenkey.参数ke
PHP:Memcached::setSaslAuthData()的用法_Memcached类 Memcached::setSaslAuthData(PECLmemcached=2.0.0)Memcached::setSaslAuthDataSetthecredentialstouseforauthentication说明publicvoidMemcached::setSaslAuthData(string$username,string$password)Memcached::se
PHP:Memcached::setOptions()的用法_Memcached类 Memcached::setOptions(PECLmemcached=2.0.0)Memcached::setOptionsSetMemcachedoptions说明publicboolMemcached::setOptions(array$options)Memcached::setOptions()isavariationoftheMemcached::setOption()that
标签: PHP:Memcached::touchByKey()的用法_Memcached类
本文链接地址:https://www.jiuchutong.com/biancheng/280081.html 转载请保留说明!上一篇:PHP:apache_get_version()的用法_Apache函数
下一篇:PHP:Memcached::touch()的用法_Memcached类
友情链接: 武汉网站建设