This repository has been archived by the owner on Jan 4, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #383 from smdcn/scdev
Memcached 驱动过期时间设置问题
- Loading branch information
60cdc4b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这有什么区别吗
60cdc4b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
直接用等于0,还不如用is_number,既然是设置缓存,传入0(立即失效)了,还有什么意思。
60cdc4b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同意楼上,不如用is_number
$expire == 0 ? 0 : 并没有什么卵用