Skip to content

Commit dba63a7

Browse files
committed
Merge remote-tracking branch 'tango/MC-32929' into Chaika-PR-2020-05-12
2 parents 40a7876 + 1767ab8 commit dba63a7

File tree

1 file changed

+17
-3
lines changed
  • lib/internal/Magento/Framework/Cache/Backend

1 file changed

+17
-3
lines changed

lib/internal/Magento/Framework/Cache/Backend/Redis.php

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,25 @@ public function load($id, $doNotTestCacheValidity = false)
7373
public function save($data, $id, $tags = [], $specificLifetime = false)
7474
{
7575
try {
76-
parent::save($data, $id, $tags, $specificLifetime);
76+
$result = parent::save($data, $id, $tags, $specificLifetime);
7777
} catch (\Throwable $exception) {
78-
return false;
78+
$result = false;
7979
}
8080

81-
return true;
81+
return $result;
82+
}
83+
84+
/**
85+
* @inheritDoc
86+
*/
87+
public function remove($id)
88+
{
89+
try {
90+
$result = parent::remove($id);
91+
} catch (\Throwable $exception) {
92+
$result = false;
93+
}
94+
95+
return $result;
8296
}
8397
}

0 commit comments

Comments
 (0)