class FileTextCache_SSCache implements FileTextCache, Flushable (View source)

Uses SS_Cache with a lifetime to cache extracted content

Properties

Methods

protected static 
get_cache()

No description

protected
getKey(File $file)

No description

public
load(File $file)

Return any cached extracted content for a given file entity

public
save(File $file, string $content)

Save extracted content for a given File entity

public static 
flush()

This function is triggered early in the request if the "flush" query parameter has been set. Each class that implements Flushable implements this function which looks after it's own specific flushing functionality.

public
invalidate(File $file)

Invalidate the cache for a given file.

Details

static protected SS_Cache get_cache()

No description

Return Value

SS_Cache

protected getKey(File $file)

No description

Parameters

File $file

load(File $file)

Return any cached extracted content for a given file entity

Parameters

File $file

save(File $file, string $content)

Save extracted content for a given File entity

Parameters

File $file
string $content

static flush()

This function is triggered early in the request if the "flush" query parameter has been set. Each class that implements Flushable implements this function which looks after it's own specific flushing functionality.

invalidate(File $file)

Invalidate the cache for a given file.

Invoked in onBeforeWrite on the file

Parameters

File $file