public function getFileContent($file, $fn)
    {
        $key = $file . filemtime($file);
        return $this->get($key, function($wei, $cache) use ($file, $fn) {
            return $fn($file, $wei, $cache);
        });
    }
public function getFileContent($file, $fn)
    {
        $key = $file . filemtime($file);
        return $this->get($key, function($wei, $cache) use ($file, $fn) {
            return $fn($file, $wei, $cache);
        });
    }
public function getFileContent ( $ file , $ fn ) { $ key = $ file . filemtime ( $ file ) ; return $ this -> get ( $ key , function ( $ wei , $ cache ) use ( $ file , $ fn ) { return $ fn ( $ file , $ wei , $ cache ) ; } ) ; }
Use the file modify time as cache key to store an item from a callback

@param string $file The path of file
@param callable $fn The callback to get and parse file content
@return mixed
Use the file modify time as cache key to store an item from a callback