Store::unlock()

bool unlock(Request $request) Releases the lock for the given Request. Parameters Request $request A Request instance Return Value bool False if the lock file does not exist or cannot be unlocked, true otherwise

Store::write()

string write(Request $request, Response $response) Writes a cache entry to the store for the given Request and Response. Existing entries are read and any that match the response are removed. This method calls write with the new list of cache entries. Parameters Request $request A Request instance Response $response A Response instance Return Value string The key under which the response is stored Exceptions RuntimeException

Store::invalidate()

invalidate(Request $request) Invalidates all cache entries that match the request. Parameters Request $request A Request instance Exceptions RuntimeException

Store

class Store implements StoreInterface Store implements all the logic for storing cache metadata (Request and Response headers). Methods __construct(string $root) Constructor. cleanup() Cleanups storage. bool|string lock(Request $request) Tries to lock the cache for a given Request, without blocking. bool unlock(Request $request) Releases the lock for the given Request. bool isLocked(Request $request) Returns whether or not a lock exists. Response|null lookup(Requ

Store::getPath()

getPath($key) Parameters $key

Store::isLocked()

bool isLocked(Request $request) Returns whether or not a lock exists. Parameters Request $request A Request instance Return Value bool true if lock exists, false otherwise

Store::cleanup()

cleanup() Cleanups storage.

Storage

class Storage Storage is the base class for all storage classes. Methods __construct(string $template) Constructor. string __toString() Returns the object string representation. string getContent() Returns the content of the template. Details __construct(string $template) Constructor. Parameters string $template The template name string __toString() Returns the object string representation.

StopwatchTokenParser::parse()

parse(Twig_Token $token) Parameters Twig_Token $token

StopwatchTokenParser::getTag()

getTag()