Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/cache/PhabricatorUserCacheType.php
| Show All 21 Lines | public function shouldValidateRawCacheData() { | ||||
| return false; | return false; | ||||
| } | } | ||||
| public function isRawCacheDataValid(PhabricatorUser $user, $key, $data) { | public function isRawCacheDataValid(PhabricatorUser $user, $key, $data) { | ||||
| throw new PhutilMethodNotImplementedException(); | throw new PhutilMethodNotImplementedException(); | ||||
| } | } | ||||
| public function getValueFromStorage($value) { | public function getValueFromStorage($value) { | ||||
| return phutil_json_decode($value); | return $value; | ||||
| } | |||||
| public function getValueForStorage($value) { | |||||
| return phutil_json_encode($value); | |||||
| } | } | ||||
| public function newValueForUsers($key, array $users) { | public function newValueForUsers($key, array $users) { | ||||
| return array(); | return array(); | ||||
| } | } | ||||
| final public function getUserCacheType() { | final public function getUserCacheType() { | ||||
| return $this->getPhobjectClassConstant('CACHETYPE'); | return $this->getPhobjectClassConstant('CACHETYPE'); | ||||
| Show All 36 Lines | |||||