php常用缓存逻辑-编程思维 Posted on2023-03-16 标签: php 设计经验 分类: php 代码 //行为限频 if (!function_exists('doSomethingLimit')) { function doSomethingLimit($key, $second, Closure $callback) { $reids = get_redis(); if ($reids->SETNX($key, 1)) { //不存在,设 Read More