位置: 编程技术 - 正文

PHP:Memcached::touchByKey()的用法_Memcached类

编辑:rootadmin
Memcached::touchByKey

推荐整理分享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 PHP:Memcached::touchByKey()的用法_Memcached类

本键名用于识别储存和读取值的服务器。没有将实际的键名散列到具体的项目,而是在决定与哪一个 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

本文链接地址:https://www.jiuchutong.com/biancheng/280081.html 转载请保留说明!

上一篇:PHP:apache_get_version()的用法_Apache函数

下一篇:PHP:Memcached::touch()的用法_Memcached类

免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络