interface FileTextCache (View source)

Methods

public
save(File $file, string $content)

Save extracted content for a given File entity

public
load(File $file)

Return any cached extracted content for a given file entity

public
invalidate(File $file)

Invalidate the cache for a given file.

Details

save(File $file, string $content)

Save extracted content for a given File entity

Parameters

File $file
string $content

load(File $file)

Return any cached extracted content for a given file entity

Parameters

File $file

invalidate(File $file)

Invalidate the cache for a given file.

Invoked in onBeforeWrite on the file

Parameters

File $file