| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | trait ManagesLocksAndShardsTrait |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Acquisisce un lock ottimistico su una chiave. |
||
| 9 | */ |
||
| 10 | protected function acquireLock(string $key, ?string $connection_name = null): bool |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Rilascia un lock ottimistico su una chiave. |
||
| 20 | */ |
||
| 21 | protected function releaseLock(string $key, ?string $connection_name = null): void |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Ricava il nome dello shard per una chiave e un tag. |
||
| 29 | */ |
||
| 30 | protected function getShardNameForTag(string $tag, string $key): string |
||
| 40 |