We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b5e3aa commit 9b52f6cCopy full SHA for 9b52f6c
1 file changed
src/Resolver/Factory.php
@@ -26,8 +26,9 @@ public function create($nameserver, LoopInterface $loop)
26
27
public function createCached($nameserver, LoopInterface $loop, CacheInterface $cache = null)
28
{
29
+ // default to keeping maximum of 256 responses in cache unless explicitly given
30
if (!($cache instanceof CacheInterface)) {
- $cache = new ArrayCache();
31
+ $cache = new ArrayCache(256);
32
}
33
34
$nameserver = $this->addPortToServerIfMissing($nameserver);
0 commit comments