\SizeRestrictedPackageCache
Class for calling the package generator and caching the results.
Synopsis
class SizeRestrictedPackageCache
implements
PackageCache
{
- // members
- protected $cacheSize;
- protected $baseDir;
- // methods
- public void setCacheSize()
- public void setBaseDir()
- public void getPackageFilename()
- protected void sanitiseDirName()
- protected void reduceDirSizeTo()
Hierarchy
Implements
Members
protected
- $baseDir
- $cacheSize
Methods
protected
- reduceDirSizeTo() — Delete items in this directory until the number of items is <= $count.
- sanitiseDirName() — Take the identifier an make it safe to use as a directory name.
public
- getPackageFilename() — Return the filename of the generated package, retrieving from cache or generating as necessary
- setBaseDir() — The base directory to store cached packages in.
- setCacheSize() — Set the maximum number of items that will be stored in the package cache.