\ComposerCache

Reads/writes to a filesystem cache

Summary

Methods
Properties
Constants
__construct()
isEnabled()
getRoot()
read()
write()
copyFrom()
copyTo()
gcIsNecessary()
remove()
clear()
gc()
sha1()
sha256()
No public properties found
No constants found
getFinder()
No protected properties found
N/A
No private methods found
$cacheCollected
$io
$root
$enabled
$whitelist
$filesystem
N/A

Properties

$cacheCollected

$cacheCollected : 

Type

$io

$io : 

Type

$root

$root : 

Type

$enabled

$enabled : 

Type

$whitelist

$whitelist : 

Type

$filesystem

$filesystem : 

Type

Methods

__construct()

__construct(\Composer\IO\IOInterface  $io, string  $cacheDir, string  $whitelist = 'a-z0-9.', \Composer\Util\Filesystem  $filesystem = null) 

Parameters

\Composer\IO\IOInterface $io
string $cacheDir

location of the cache

string $whitelist

List of characters that are allowed in path names (used in a regex character class)

\Composer\Util\Filesystem $filesystem

optional filesystem instance

isEnabled()

isEnabled() 

getRoot()

getRoot() 

read()

read(  $file) 

Parameters

$file

write()

write(  $file,   $contents) 

Parameters

$file
$contents

copyFrom()

copyFrom(  $file,   $source) 

Copy a file into the cache

Parameters

$file
$source

copyTo()

copyTo(  $file,   $target) 

Copy a file out of the cache

Parameters

$file
$target

gcIsNecessary()

gcIsNecessary() 

remove()

remove(  $file) 

Parameters

$file

clear()

clear() 

gc()

gc(  $ttl,   $maxSize) 

Parameters

$ttl
$maxSize

sha1()

sha1(  $file) 

Parameters

$file

sha256()

sha256(  $file) 

Parameters

$file

getFinder()

getFinder()