mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
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:
1 parent
6725ef6b8a
commit
7cde69437e
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user