Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 661 Bytes

caching.md

File metadata and controls

23 lines (18 loc) · 661 Bytes

Caching plugin

This repository does not contain a caching plugin. If you want to be able to cache the methods in your SOAP client, you could use our annotated-cache package.

This package will make it possible to specify the caching configuration in the annotations of your SOAP client.

use Phpro\AnnotatedCache\Annotation\Cacheable;

class YourClient extends Client
{
    /**
     * @Cacheable(pools="soapclient-pool", key="request", tags="helloworld", ttl=500)
     */
    public function helloWorld(RequestInterface $request)
    {
        return $this->call('HelloWorld', $request);
    }
}