PHP Class Imbo\EventListener\MetadataCache

Author: Christer Edvartsen ([email protected])
Inheritance: implements Imbo\EventListener\ListenerInterface
Datei anzeigen Open project: imbo/imbo Class Usage Examples

Public Methods

Method Description
__construct ( array $params ) Class constructor
deleteFromCache ( Imbo\EventManager\EventInterface $event ) Delete data from the cache
getSubscribedEvents ( )
loadFromCache ( Imbo\EventManager\EventInterface $event ) Get data from the cache
storeInCache ( Imbo\EventManager\EventInterface $event ) Store metadata in the cache

Private Methods

Method Description
getCacheKey ( string $user, string $imageIdentifier ) : string Generate a cache key

Method Details

__construct() public method

Class constructor
public __construct ( array $params )
$params array Parameters for the event listener

deleteFromCache() public method

Delete data from the cache
public deleteFromCache ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface The event instance

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

loadFromCache() public method

Get data from the cache
public loadFromCache ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface The event instance

storeInCache() public method

Store metadata in the cache
public storeInCache ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface The event instance