Zend\Cache\Pattern\CaptureCache
Synopsis
class CaptureCache
extends AbstractPattern
{
- // Inherited members from AbstractPattern
- protected PatternOptions $options;
- // methods
- public void start()
- public void set()
- public bool|string get()
- public bool has()
- public bool remove()
- public void clearByGlob()
- protected string detectPageId()
- protected string pageId2Filename()
- protected string pageId2Path()
- protected void putFileContent()
- protected void createDirectoryStructure()
- public string getFilename()
- // Inherited methods from AbstractPattern
- public AbstractPattern setOptions()
- public PatternOptions getOptions()
Hierarchy
Members
protected
- $options — Zend\Cache\Pattern\PatternOptions
Methods
protected
- createDirectoryStructure() — Creates directory if not already done.
- detectPageId() — Determine the page to save from the request
- pageId2Filename() — Get filename for page id
- pageId2Path() — Get path for page id
- putFileContent() — Write content to a file
public
- clearByGlob() — Clear cached pages matching glob pattern
- get() — Get from cache
- getFilename() — Returns the generated file name.
- has() — Checks if a cache with given id exists
- remove() — Remove from cache
- set() — Write content to page identity
- start() — Start the cache
Inherited from Zend\Cache\Pattern\AbstractPattern
public
- getOptions() — Get all pattern options
- setOptions() — Set pattern options