src/Signature/SignatureProvider.php
public static function memoize(callable $provider)
    {
        $cache = [];
        return function ($version, $service, $region) use (&$cache, $provider) {
            $key = "($version)($service)($region)";
            if (!isset($cache[$key])) {
                $cache[$key] = $provider($version, $service, $region);
            }
            return $cache[$key];
        };
    }
public static function memoize(callable $provider)
    {
        $cache = [];
        return function ($version, $service, $region) use (&$cache, $provider) {
            $key = "($version)($service)($region)";
            if (!isset($cache[$key])) {
                $cache[$key] = $provider($version, $service, $region);
            }
            return $cache[$key];
        };
    }
public static function memoize ( callable $ provider ) { $ cache = [ ] ; return function ( $ version , $ service , $ region ) use ( & $ cache , $ provider ) { $ key = "($version)($service)($region)" ; if ( ! isset ( $ cache [ $ key ] ) ) { $ cache [ $ key ] = $ provider ( $ version , $ service , $ region ) ; } return $ cache [ $ key ] ; } ; }
Creates a signature provider that caches previously created signature
objects. The computed cache key is the concatenation of the version,
service, and region.

@param callable $provider Signature provider to wrap.

@return callable
Creates a signature provider that caches previously created signature objects . The computed cache key is the concatenation of the version service and region .