protected function putCacheIndex($cacheKey)
    {
        $index = [];

        if (Cache::has('combiner.index')) {
            $index = (array) @unserialize(@base64_decode(Cache::get('combiner.index'))) ?: [];
        }

        if (in_array($cacheKey, $index)) {
            return false;
        }

        $index[] = $cacheKey;

        Cache::forever('combiner.index', base64_encode(serialize($index)));

        return true;
    }
protected function putCacheIndex($cacheKey)
    {
        $index = [];

        if (Cache::has('combiner.index')) {
            $index = (array) @unserialize(@base64_decode(Cache::get('combiner.index'))) ?: [];
        }

        if (in_array($cacheKey, $index)) {
            return false;
        }

        $index[] = $cacheKey;

        Cache::forever('combiner.index', base64_encode(serialize($index)));

        return true;
    }
protected function putCacheIndex ( $ cacheKey ) { $ index = [ ] ; if ( Cache :: has ( 'combiner.index' ) ) { $ index = ( array ) @ unserialize ( @ base64_decode ( Cache :: get ( 'combiner.index' ) ) ) ? : [ ] ; } if ( in_array ( $ cacheKey , $ index ) ) { return false ; } $ index [ ] = $ cacheKey ; Cache :: forever ( 'combiner.index' , base64_encode ( serialize ( $ index ) ) ) ; return true ; }
Adds a cache identifier to the index store used for
performing a reset of the cache.
@param string $cacheKey Cache identifier
@return bool Returns false if identifier is already in store
Adds a cache identifier to the index store used for performing a reset of the cache .