Tonic


Tonic\MetadataCacheAPC
src/Tonic/MetadataCacheAPC.php at line 10

Class MetadataCacheAPC

MetadataCacheAPC
All Implemented Interfaces:
MetadataCache

public class MetadataCacheAPC

Cache resource metadata between invocations

This class writes the resource metadata to APC for reading in a later request.


Constructor Summary
void

__construct(mixed cacheName)

Method Summary
boolean

isCached()

Is there already cache file

str[]

load()

Load the resource metadata from disk

boolean

save(str resources)

Save resource metadata to disk

void

clear()

Constructor Detail

src/Tonic/MetadataCacheAPC.php at line 14

__construct

public void __construct(mixed cacheName)

Method Detail

src/Tonic/MetadataCacheAPC.php at line 24

isCached

public boolean isCached()

Is there already cache file


src/Tonic/MetadataCacheAPC.php at line 33

load

public str[] load()

Load the resource metadata from disk


src/Tonic/MetadataCacheAPC.php at line 43

save

public boolean save(str resources)

Save resource metadata to disk

Parameters:
resources - Resource metadata

src/Tonic/MetadataCacheAPC.php at line 48

clear

public void clear()

Tonic