<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Session; use Illuminate\Support\Facades\Session; use Module\Vendor\Atomic\AtomicUtil; class SessionUtil { public static function atomicProduce($HRrYd, $L58zW, $sQwqe = 3600) { AtomicUtil::produce("{$HRrYd}:" . Session::getId(), $L58zW, $sQwqe); } public static function atomicConsume($HRrYd) { return AtomicUtil::consume("{$HRrYd}:" . Session::getId()); } public static function atomicRemove($HRrYd) { AtomicUtil::remove("{$HRrYd}:" . Session::getId()); } }