src/Cache/DatabaseTreeCache.php
public function getTreeCache($table, $key): ?array
    {
        $filename = $table.'_'.$key.'.php';

        if (file_exists($this->cacheDir.'/'.$filename)) {
            self::$cache[$table.'_'.$key] = (include $this->cacheDir.'/'.$filename);
        }

        return self::$cache[$table.'_'.$key] ?? null;
    }
public function getTreeCache($table, $key): ?array
    {
        $filename = $table.'_'.$key.'.php';

        if (file_exists($this->cacheDir.'/'.$filename)) {
            self::$cache[$table.'_'.$key] = (include $this->cacheDir.'/'.$filename);
        }

        return self::$cache[$table.'_'.$key] ?? null;
    }
public function getTreeCache ( $ table , $ key ) : ? array { $ filename = $ table . '_' . $ key . '.php' ; if ( file_exists ( $ this -> cacheDir . '/' . $ filename ) ) { self :: $ cache [ $ table . '_' . $ key ] = ( include $ this -> cacheDir . '/' . $ filename ) ; } return self :: $ cache [ $ table . '_' . $ key ] ?? null ; }
Get the tree cache for a given table and key.

@param string $table The database table
@param string Custom index key (default: primary key from model)

@return array|null
Get the tree cache for a given table and key .