protected function flushCacheKeys()
    {
        $flushedKeys = [];
        $calledClass = get_called_class();
        $config      = $this->getContainer('config')->get('rinvex.repository.cache');
        $cacheKeys   = $this->getCacheKeys($config['keys_file']);

        if (isset($cacheKeys[$calledClass]) && is_array($cacheKeys[$calledClass])) {
            foreach ($cacheKeys[$calledClass] as $cacheKey) {
                $flushedKeys[] = $calledClass.'@'.$cacheKey;
            }

            unset($cacheKeys[$calledClass]);
            file_put_contents($config['keys_file'], json_encode($cacheKeys));
        }

        return $flushedKeys;
    }