public static function createForType($viewableType, $period, bool $unique): string
    {
        $cacheKey = config('eloquent-viewable.cache.key', 'cyrildewit.eloquent-viewable.cache');

        $viewableType = strtolower(str_replace('\\', '-', $viewableType));

        $typeKey = $unique ? 'unique' : 'normal';
        $periodKey = static::createPeriodKey($period);

        return "{$cacheKey}.{$viewableType}.{$typeKey}.{$periodKey}";
    }
public static function createForType($viewableType, $period, bool $unique): string
    {
        $cacheKey = config('eloquent-viewable.cache.key', 'cyrildewit.eloquent-viewable.cache');

        $viewableType = strtolower(str_replace('\\', '-', $viewableType));

        $typeKey = $unique ? 'unique' : 'normal';
        $periodKey = static::createPeriodKey($period);

        return "{$cacheKey}.{$viewableType}.{$typeKey}.{$periodKey}";
    }
public static function createForType ( $ viewableType , $ period , bool $ unique ) : string { $ cacheKey = config ( 'eloquent-viewable.cache.key' , 'cyrildewit.eloquent-viewable.cache' ) ; $ viewableType = strtolower ( str_replace ( '\\' , '-' , $ viewableType ) ) ; $ typeKey = $ unique ? 'unique' : 'normal' ; $ periodKey = static :: createPeriodKey ( $ period ) ; return "{$cacheKey}.{$viewableType}.{$typeKey}.{$periodKey}" ; }
Create a unique key for the viewable type.

@param  string  $viewableType
@param  \CyrildeWit\EloquentViewable\Support\Period  $period
@param  bool  $unique
@return string
Create a unique key for the viewable type .