src/Model.php
protected function getUpdateMethod()
    {
        $method = '';
        switch ($this->type) {
            case 'string':
                $method = 'set';
                break;
            case 'list':
                $method = $this->listPushMethod;
                break;
            case 'set':
                $method = 'sadd';
                break;
            case 'zset':
                $method = 'zadd';
                break;
            case 'hash':
                $method = 'hmset';
                break;
            default:
                break;
        }

        return $method;
    }
protected function getUpdateMethod()
    {
        $method = '';
        switch ($this->type) {
            case 'string':
                $method = 'set';
                break;
            case 'list':
                $method = $this->listPushMethod;
                break;
            case 'set':
                $method = 'sadd';
                break;
            case 'zset':
                $method = 'zadd';
                break;
            case 'hash':
                $method = 'hmset';
                break;
            default:
                break;
        }

        return $method;
    }
protected function getUpdateMethod ( ) { $ method = '' ; switch ( $ this -> type ) { case 'string' : $ method = 'set' ; break ; case 'list' : $ method = $ this -> listPushMethod ; break ; case 'set' : $ method = 'sadd' ; break ; case 'zset' : $ method = 'zadd' ; break ; case 'hash' : $ method = 'hmset' ; break ; default : break ; } return $ method ; }
Get update method according to redis data type

@return string
Get update method according to redis data type