PHP Trait Psr7Middlewares\Utils\CacheMessageTrait

Afficher le fichier Open project: oscarotero/psr7-middlewares

Méthodes publiques

Méthode Description
cache ( Psr\Cache\CacheItemPoolInterface $cache ) : self Provide the cache implementation.

Private Methods

Méthode Description
getFromCache ( string $key, Psr\Http\Message\MessageInterface $message ) : Psr\Http\Message\MessageInterface | false Restore a message from the cache.
saveIntoCache ( string $key, Psr\Http\Message\MessageInterface $message ) Store a message in the cache.

Method Details

cache() public méthode

Provide the cache implementation.
public cache ( Psr\Cache\CacheItemPoolInterface $cache ) : self
$cache Psr\Cache\CacheItemPoolInterface
Résultat self