src/Kharanenka/Helper/CCache.php
public static function put($arTags, $sKeys, &$arValue, $iMinute)
    {
        $obDate = Carbon::now()->addMinute($iMinute);

        $sCacheDriver = config('cache.default');
        if(!empty($arTags)) {
            if($sCacheDriver == 'redis') {
                Cache::tags($arTags)->put($sKeys, $arValue, $obDate);
                return;
            } else {
                $sKeys = implode('_', $arTags).'_'.$sKeys;
            }
        }

        Cache::put($sKeys, $arValue, $obDate);
    }
public static function put($arTags, $sKeys, &$arValue, $iMinute)
    {
        $obDate = Carbon::now()->addMinute($iMinute);

        $sCacheDriver = config('cache.default');
        if(!empty($arTags)) {
            if($sCacheDriver == 'redis') {
                Cache::tags($arTags)->put($sKeys, $arValue, $obDate);
                return;
            } else {
                $sKeys = implode('_', $arTags).'_'.$sKeys;
            }
        }

        Cache::put($sKeys, $arValue, $obDate);
    }
public static function put ( $ arTags , $ sKeys , & $ arValue , $ iMinute ) { $ obDate = Carbon :: now ( ) -> addMinute ( $ iMinute ) ; $ sCacheDriver = config ( 'cache.default' ) ; if ( ! empty ( $ arTags ) ) { if ( $ sCacheDriver == 'redis' ) { Cache :: tags ( $ arTags ) -> put ( $ sKeys , $ arValue , $ obDate ) ; return ; } else { $ sKeys = implode ( '_' , $ arTags ) . '_' . $ sKeys ; } } Cache :: put ( $ sKeys , $ arValue , $ obDate ) ; }
Put cache data
@param array $arTags
@param string $sKeys
@param mixed $arValue
@param int $iMinute
Put cache data