Rinvex\Repository\Traits\Cacheable::getCacheKeys PHP Method

getCacheKeys() protected method

Get cache keys.
protected getCacheKeys ( string $file ) : array
$file string
return array
    protected function getCacheKeys($file)
    {
        if (!file_exists($file)) {
            file_put_contents($file, null);
        }
        return json_decode(file_get_contents($file), true) ?: [];
    }