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 6d7328e commit d6233ccCopy full SHA for d6233cc
src/Prometheus/Storage/Redis.php
@@ -536,7 +536,11 @@ private function collectSummaries(): array
536
}
537
538
if (count($samples) === 0) {
539
- $this->redis->del($valueKey);
+ try {
540
+ $this->redis->del($valueKey);
541
+ } catch (\RedisException $e) {
542
+ // ignore if we can't delete the key
543
+ }
544
continue;
545
546
@@ -571,7 +575,11 @@ private function collectSummaries(): array
571
575
if (count($data['samples']) > 0) {
572
576
$summaries[] = $data;
573
577
} else {
574
- $this->redis->del($metaKey);
578
579
+ $this->redis->del($metaKey);
580
581
582
583
584
585
return $summaries;
0 commit comments