| @@ 119-131 (lines=13) @@ | ||
| 116 | /** |
|
| 117 | * {@inheritdoc} |
|
| 118 | */ |
|
| 119 | public function loadByLogin($login) |
|
| 120 | { |
|
| 121 | return $this->getCacheValue( |
|
| 122 | str_replace('@', '§', $login), |
|
| 123 | 'ez-user-', |
|
| 124 | function ($escapedLogin) use ($login) { |
|
| 125 | return $this->persistenceHandler->userHandler()->loadByLogin($login); |
|
| 126 | }, |
|
| 127 | $this->getUserTags, |
|
| 128 | $this->getUserKeys, |
|
| 129 | '-by-login' |
|
| 130 | ); |
|
| 131 | } |
|
| 132 | ||
| 133 | /** |
|
| 134 | * {@inheritdoc} |
|
| @@ 136-147 (lines=12) @@ | ||
| 133 | /** |
|
| 134 | * {@inheritdoc} |
|
| 135 | */ |
|
| 136 | public function loadByEmail($email) |
|
| 137 | { |
|
| 138 | // As load by email can return several items we threat it like a list here. |
|
| 139 | return $this->getListCacheValue( |
|
| 140 | 'ez-user-' . str_replace('@', '§', $email) . '-by-email', |
|
| 141 | function () use ($email) { |
|
| 142 | return $this->persistenceHandler->userHandler()->loadByEmail($email); |
|
| 143 | }, |
|
| 144 | $this->getUserTags, |
|
| 145 | $this->getUserKeys |
|
| 146 | ); |
|
| 147 | } |
|
| 148 | ||
| 149 | /** |
|
| 150 | * {@inheritdoc} |
|