protected function getCacheKey()
    {
        $item = UserPreference::forUser();
        $userId = $item->userContext ? $item->userContext->id : 0;
        return $this->recordCode.'-userpreference-'.$userId;
    }
protected function getCacheKey()
    {
        $item = UserPreference::forUser();
        $userId = $item->userContext ? $item->userContext->id : 0;
        return $this->recordCode.'-userpreference-'.$userId;
    }
protected function getCacheKey ( ) { $ item = UserPreference :: forUser ( ) ; $ userId = $ item -> userContext ? $ item -> userContext -> id : 0 ; return $ this -> recordCode . '-userpreference-' . $ userId ; }
Returns a cache key for this record.
Returns a cache key for this record .