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