Tonic


Tonic\MetadataCache
src/Tonic/MetadataCache.php at line 8

Interface MetadataCache

MetadataCache

public interface MetadataCache

Cache resource metadata between invocations


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()

Clear the cache

Method Detail

src/Tonic/MetadataCache.php at line 14

isCached

public boolean isCached()

Is there already cache file


src/Tonic/MetadataCache.php at line 20

load

public str[] load()

Load the resource metadata from disk


src/Tonic/MetadataCache.php at line 27

save

public boolean save(str resources)

Save resource metadata to disk

Parameters:
resources - Resource metadata

src/Tonic/MetadataCache.php at line 32

clear

public void clear()

Clear the cache


Tonic