Property | Type | Description | |
---|---|---|---|
$directory | string | The cache directory. |
Method | Description | |
---|---|---|
__construct ( string $directory, string $extension = '', $umask = 2 ) | Constructor. | |
getDirectory ( ) : string | Gets the cache directory. | |
getExtension ( ) : string | Gets the cache file extension. |
Method | Description | |
---|---|---|
doDelete ( $id ) | ||
doFlush ( ) | ||
doGetStats ( ) | ||
getFilename ( string $id ) : string | ||
writeFile ( string $filename, string $content ) : boolean | Writes a string content to file in an atomic way. |
Method | Description | |
---|---|---|
createPathIfNeeded ( string $path ) : boolean | Create path if needed. | |
getIterator ( ) : Iterator | ||
isFilenameEndingWithExtension ( string $name ) : boolean |
public __construct ( string $directory, string $extension = '', $umask = 2 ) | ||
$directory | string | The cache directory. |
$extension | string | The cache file extension. |
public getDirectory ( ) : string | ||
return | string |
public getExtension ( ) : string | ||
return | string |
protected getFilename ( string $id ) : string | ||
$id | string | |
return | string |