public function getById(int $value)
    {
        // This is the primary key, so try and get from cache:
        $cacheResult = $this->cacheGet($value);

        if (!empty($cacheResult)) {
            return $cacheResult;
        }

        $rtn = $this->where('id', $value)->first();
        $this->cacheSet($value, $rtn);

        return $rtn;
    }
public function getById(int $value)
    {
        // This is the primary key, so try and get from cache:
        $cacheResult = $this->cacheGet($value);

        if (!empty($cacheResult)) {
            return $cacheResult;
        }

        $rtn = $this->where('id', $value)->first();
        $this->cacheSet($value, $rtn);

        return $rtn;
    }
public function getById ( int $ value ) { // This is the primary key, so try and get from cache: $ cacheResult = $ this -> cacheGet ( $ value ) ; if ( ! empty ( $ cacheResult ) ) { return $ cacheResult ; } $ rtn = $ this -> where ( 'id' , $ value ) -> first ( ) ; $ this -> cacheSet ( $ value , $ rtn ) ; return $ rtn ; }
Get a Log object by Id.
@param $value
@return Log|null
Get a Log object by Id .