<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Util; use Illuminate\Support\Facades\Cache; class CacheUtil { private static function client() { return Cache::store(); } public static function rememberForever($ySsOv, $Ikxtb) { return self::client()->rememberForever($ySsOv, $Ikxtb); } public static function remember($ySsOv, $IRNKw, $Ikxtb) { return self::client()->remember($ySsOv, intval($IRNKw / 60), $Ikxtb); } public static function forget($ySsOv) { return self::client()->forget($ySsOv); } public static function get($ySsOv) { return self::client()->get($ySsOv); } public static function put($ySsOv, $sKrwM, $IRNKw) { self::client()->put($ySsOv, $sKrwM, ceil($IRNKw / 60)); } public static function forever($ySsOv, $sKrwM) { self::client()->forever($ySsOv, $sKrwM); } public static function executeInterval($ySsOv, $Ikxtb, $COWz6 = 5) { goto BVaXo; bpzFp: if ($R_07X <= 0 || $R_07X < time()) { self::put($E9OkN, time() + $COWz6 * 60, $COWz6 * 60); call_user_func($Ikxtb); } goto mRa3h; BVaXo: $E9OkN = 'Vendor:CacheInterval:' . $ySsOv; goto xe8P4; xe8P4: $R_07X = intval(self::get($E9OkN)); goto bpzFp; mRa3h: } }