src/Model.php
protected function getFindMethodAndParameters()
    {
        $method = '';
        $parameters = [];

        switch ($this->type) {
            case 'string':
                $method = 'get';
                break;
            case 'list':
                $method = 'lrange';
                $parameters = [0, -1];
                break;
            case 'set':
                $method = 'smembers';
                break;
            case 'zset':
                $method = 'zrange';
                $parameters = [0, -1];
                break;
            case 'hash':
                $method = 'hgetall';
                break;
            default:
                break;
        }

        return [$method, $parameters];
    }
protected function getFindMethodAndParameters()
    {
        $method = '';
        $parameters = [];

        switch ($this->type) {
            case 'string':
                $method = 'get';
                break;
            case 'list':
                $method = 'lrange';
                $parameters = [0, -1];
                break;
            case 'set':
                $method = 'smembers';
                break;
            case 'zset':
                $method = 'zrange';
                $parameters = [0, -1];
                break;
            case 'hash':
                $method = 'hgetall';
                break;
            default:
                break;
        }

        return [$method, $parameters];
    }
protected function getFindMethodAndParameters ( ) { $ method = '' ; $ parameters = [ ] ; switch ( $ this -> type ) { case 'string' : $ method = 'get' ; break ; case 'list' : $ method = 'lrange' ; $ parameters = [ 0 , - 1 ] ; break ; case 'set' : $ method = 'smembers' ; break ; case 'zset' : $ method = 'zrange' ; $ parameters = [ 0 , - 1 ] ; break ; case 'hash' : $ method = 'hgetall' ; break ; default : break ; } return [ $ method , $ parameters ] ; }
Get find method and default parameters according to redis data type.
@return array
Get find method and default parameters according to redis data type .