| 1234567891011121314151617181920212223 |
- <?php
- namespace Modules\ManageApi\Services;
- use App\Constants\RedisKeyConstant;
- use App\Models\MerchantModel;
- use Illuminate\Support\Facades\Cache;
- class MerchantServices
- {
- /**
- * 清理商户缓存
- *
- * @return void
- */
- public function clearCache()
- {
- $data = MerchantModel::query()->where('status', 1)->get(['uid']);
- foreach ($data as $val) {
- Cache::forget(RedisKeyConstant::PAYMENT_TYPE . $val['uid']);
- }
- }
- }
|