refactor(cache): narrow leaseRun to private

Only saveWithLease and purge call it, both inside Leasable — no concrete
adapter needs to call or override it, so private keeps the EVALSHA→EVAL
contract from leaking into the extension surface. Addresses review.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Jake BarnbyandClaude Opus 4.8 committed 2026-07-02 03:22:01 +12:00
1 parent 6725ef6b8a
commit 7cde69437e
1 file changed
+1 -1
+1 -1
View File
@@ -199,7 +199,7 @@ abstract class Leasable implements \Utopia\Cache\Feature\Leasable
*
* @param array<int, int|string> $args
*/
protected function leaseRun(string $script, string $key, array $args): mixed
private function leaseRun(string $script, string $key, array $args): mixed
{
try {
return $this->leaseEvalSha($this->shaFor($script), $key, $args);