<?php

namespace App\Listeners;

use App\Developer;
use App\Events\DeveloperCache;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Support\Facades\Cache;

class DeveloperCacheRemove
{
    /**
     * Create the event listener.
     *
     * @return void
     */
    public function __construct()
    {
    }

    /**
     * Handle the event.
     *
     * @param DeveloperCache $event
     * @return void
     */
    public function handle(DeveloperCache $event)
    {
        Cache::forget(Developer::CACHE_KEY_MAIN_PAGE_RESULT);
        Cache::forget(Developer::CACHE_KEY_MAIN_PAGE_COUNT);
    }
}
