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