![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
花火passiontec
一个程序就是一个世界
展开
-
文件锁
PHP锁定机制bool flock ( int handle, int operation [, int &wouldblock] );flock() 操作的 handle 必须是一个已经打开的文件指针。operation 可以是以下值之一:要取得共享锁定(读取程序),将 operation 设为 LOCK_SH(PHP 4.0.1 以前的版本设置为 1)要取得独占锁定(写入程转载 2017-09-09 10:34:37 · 262 阅读 · 0 评论 -
redis过期回调处理订单超时
目录1、redis.config配置--重启redis2、四个文件3.执行监听文件index.phppsubscribe.phpRedis2.class.phpdb.class.php1、redis.config配置--重启redisnotify-keyspace-events “Ex”。#x 代表了过期事件。2、四个文件index.php 创...转载 2018-08-16 18:10:15 · 7665 阅读 · 0 评论