Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/query/PhabricatorAuthSSHKeyQuery.php
| <?php | <?php | ||||
| final class PhabricatorAuthSSHKeyQuery | final class PhabricatorAuthSSHKeyQuery | ||||
| extends PhabricatorCursorPagedPolicyAwareQuery { | extends PhabricatorCursorPagedPolicyAwareQuery { | ||||
| const AUTHFILE_CACHEKEY = 'ssh.authfile'; | const AUTHSTRUCT_CACHEKEY = 'ssh.authstruct'; | ||||
| private $ids; | private $ids; | ||||
| private $phids; | private $phids; | ||||
| private $objectPHIDs; | private $objectPHIDs; | ||||
| private $keys; | private $keys; | ||||
| private $isActive; | private $isActive; | ||||
| public static function deleteSSHKeyCache() { | public static function deleteSSHKeyCache() { | ||||
| $cache = PhabricatorCaches::getMutableCache(); | $cache = PhabricatorCaches::getMutableCache(); | ||||
| $authfile_key = self::AUTHFILE_CACHEKEY; | $authfile_key = self::AUTHSTRUCT_CACHEKEY; | ||||
| $cache->deleteKey($authfile_key); | $cache->deleteKey($authfile_key); | ||||
| } | } | ||||
| public function withIDs(array $ids) { | public function withIDs(array $ids) { | ||||
| $this->ids = $ids; | $this->ids = $ids; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 114 Lines • Show Last 20 Lines | |||||