\phpDocumentor\Descriptor\CacheProjectDescriptorMapper

Maps a projectDescriptor to and from a cache instance.

Summary

Methods
Properties
Constants
__construct()
getCache()
populate()
save()
garbageCollect()
No public properties found
FILE_PREFIX
KEY_SETTINGS
igBinaryCompatibleCacheClear()
$cache
N/A
No private methods found
No private properties found
N/A

Constants

FILE_PREFIX

FILE_PREFIX = 'file_'

KEY_SETTINGS

KEY_SETTINGS = 'settings'

Properties

$cache

$cache : \Zend\Cache\Storage\StorageInterface|\Zend\Cache\Storage\IterableInterface

Type

\Zend\Cache\Storage\StorageInterface|\Zend\Cache\Storage\IterableInterface

Methods

__construct()

__construct(\Zend\Cache\Storage\StorageInterface  $cache) 

Initializes this mapper with the given cache instance.

Parameters

\Zend\Cache\Storage\StorageInterface $cache

getCache()

getCache() : \Zend\Cache\Storage\IterableInterface|\Zend\Cache\Storage\StorageInterface

Returns the Cache instance for this Mapper.

Returns

\Zend\Cache\Storage\IterableInterface|\Zend\Cache\Storage\StorageInterface

garbageCollect()

garbageCollect(\phpDocumentor\Fileset\Collection  $collection) : void

Removes all files in cache that do not occur in the given FileSet Collection.

Parameters

\phpDocumentor\Fileset\Collection $collection

igBinaryCompatibleCacheClear()

igBinaryCompatibleCacheClear(string  $key, \Exception  $e) : void

Clears the cache if a serialization exception was thrown

Parameters

string $key
\Exception $e

Throws

\Exception

Rethrows exception if nessesary