Subsequent calls to
get()
return the cached value if expiration time has not passed.
Time is passed in seconds. public static memoizeWithExpiration ( callable $function, integer $expireTime = 3600 ) : Ouzo\Utilities\Supplier\Supplier | ||
$function | callable | |
$expireTime | integer | |
return | Ouzo\Utilities\Supplier\Supplier |