Java Code Examples for org.springframework.data.redis.connection.ReturnType#BOOLEAN

The following examples show how to use org.springframework.data.redis.connection.ReturnType#BOOLEAN . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RedissonReactiveScriptingCommands.java    From redisson with Apache License 2.0 6 votes vote down vote up
protected RedisCommand<?> toCommand(ReturnType returnType, String name) {
    RedisCommand<?> c = null; 
    if (returnType == ReturnType.BOOLEAN) {
        c = org.redisson.api.RScript.ReturnType.BOOLEAN.getCommand();
    } else if (returnType == ReturnType.INTEGER) {
        c = org.redisson.api.RScript.ReturnType.INTEGER.getCommand();
    } else if (returnType == ReturnType.MULTI) {
        c = org.redisson.api.RScript.ReturnType.MULTI.getCommand();
        return new RedisCommand(c, name, new BinaryConvertor());
    } else if (returnType == ReturnType.STATUS) {
        c = org.redisson.api.RScript.ReturnType.STATUS.getCommand();
    } else if (returnType == ReturnType.VALUE) {
        c = org.redisson.api.RScript.ReturnType.VALUE.getCommand();
        return new RedisCommand(c, name, new BinaryConvertor());
    }
    return new RedisCommand(c, name);
}
 
Example 2
Source File: RedissonReactiveScriptingCommands.java    From redisson with Apache License 2.0 6 votes vote down vote up
protected RedisCommand<?> toCommand(ReturnType returnType, String name) {
    RedisCommand<?> c = null; 
    if (returnType == ReturnType.BOOLEAN) {
        c = org.redisson.api.RScript.ReturnType.BOOLEAN.getCommand();
    } else if (returnType == ReturnType.INTEGER) {
        c = org.redisson.api.RScript.ReturnType.INTEGER.getCommand();
    } else if (returnType == ReturnType.MULTI) {
        c = org.redisson.api.RScript.ReturnType.MULTI.getCommand();
        return new RedisCommand(c, name, new BinaryConvertor());
    } else if (returnType == ReturnType.STATUS) {
        c = org.redisson.api.RScript.ReturnType.STATUS.getCommand();
    } else if (returnType == ReturnType.VALUE) {
        c = org.redisson.api.RScript.ReturnType.VALUE.getCommand();
        return new RedisCommand(c, name, new BinaryConvertor());
    }
    return new RedisCommand(c, name);
}
 
Example 3
Source File: RedissonConnection.java    From redisson with Apache License 2.0 6 votes vote down vote up
protected RedisCommand<?> toCommand(ReturnType returnType, String name) {
    RedisCommand<?> c = null; 
    if (returnType == ReturnType.BOOLEAN) {
        c = org.redisson.api.RScript.ReturnType.BOOLEAN.getCommand();
    } else if (returnType == ReturnType.INTEGER) {
        c = org.redisson.api.RScript.ReturnType.INTEGER.getCommand();
    } else if (returnType == ReturnType.MULTI) {
        c = org.redisson.api.RScript.ReturnType.MULTI.getCommand();
        return new RedisCommand(c, name, new BinaryConvertor());
    } else if (returnType == ReturnType.STATUS) {
        c = org.redisson.api.RScript.ReturnType.STATUS.getCommand();
    } else if (returnType == ReturnType.VALUE) {
        c = org.redisson.api.RScript.ReturnType.VALUE.getCommand();
        return new RedisCommand(c, name, new BinaryConvertor());
    }
    return new RedisCommand(c, name);
}
 
Example 4
Source File: RedissonReactiveScriptingCommands.java    From redisson with Apache License 2.0 6 votes vote down vote up
protected RedisCommand<?> toCommand(ReturnType returnType, String name) {
    RedisCommand<?> c = null; 
    if (returnType == ReturnType.BOOLEAN) {
        c = org.redisson.api.RScript.ReturnType.BOOLEAN.getCommand();
    } else if (returnType == ReturnType.INTEGER) {
        c = org.redisson.api.RScript.ReturnType.INTEGER.getCommand();
    } else if (returnType == ReturnType.MULTI) {
        c = org.redisson.api.RScript.ReturnType.MULTI.getCommand();
        return new RedisCommand(c, name, new BinaryConvertor());
    } else if (returnType == ReturnType.STATUS) {
        c = org.redisson.api.RScript.ReturnType.STATUS.getCommand();
    } else if (returnType == ReturnType.VALUE) {
        c = org.redisson.api.RScript.ReturnType.VALUE.getCommand();
        return new RedisCommand(c, name, new BinaryConvertor());
    }
    return new RedisCommand(c, name);
}
 
Example 5
Source File: RedissonConnection.java    From redisson with Apache License 2.0 6 votes vote down vote up
protected RedisCommand<?> toCommand(ReturnType returnType, String name) {
    RedisCommand<?> c = null; 
    if (returnType == ReturnType.BOOLEAN) {
        c = org.redisson.api.RScript.ReturnType.BOOLEAN.getCommand();
    } else if (returnType == ReturnType.INTEGER) {
        c = org.redisson.api.RScript.ReturnType.INTEGER.getCommand();
    } else if (returnType == ReturnType.MULTI) {
        c = org.redisson.api.RScript.ReturnType.MULTI.getCommand();
        return new RedisCommand(c, name, new BinaryConvertor());
    } else if (returnType == ReturnType.STATUS) {
        c = org.redisson.api.RScript.ReturnType.STATUS.getCommand();
    } else if (returnType == ReturnType.VALUE) {
        c = org.redisson.api.RScript.ReturnType.VALUE.getCommand();
        return new RedisCommand(c, name, new BinaryConvertor());
    }
    return new RedisCommand(c, name);
}
 
Example 6
Source File: RedissonReactiveScriptingCommands.java    From redisson with Apache License 2.0 6 votes vote down vote up
protected RedisCommand<?> toCommand(ReturnType returnType, String name) {
    RedisCommand<?> c = null; 
    if (returnType == ReturnType.BOOLEAN) {
        c = org.redisson.api.RScript.ReturnType.BOOLEAN.getCommand();
    } else if (returnType == ReturnType.INTEGER) {
        c = org.redisson.api.RScript.ReturnType.INTEGER.getCommand();
    } else if (returnType == ReturnType.MULTI) {
        c = org.redisson.api.RScript.ReturnType.MULTI.getCommand();
        return new RedisCommand(c, name, new BinaryConvertor());
    } else if (returnType == ReturnType.STATUS) {
        c = org.redisson.api.RScript.ReturnType.STATUS.getCommand();
    } else if (returnType == ReturnType.VALUE) {
        c = org.redisson.api.RScript.ReturnType.VALUE.getCommand();
        return new RedisCommand(c, name, new BinaryConvertor());
    }
    return new RedisCommand(c, name);
}
 
Example 7
Source File: RedissonConnection.java    From redisson with Apache License 2.0 6 votes vote down vote up
protected RedisCommand<?> toCommand(ReturnType returnType, String name) {
    RedisCommand<?> c = null; 
    if (returnType == ReturnType.BOOLEAN) {
        c = org.redisson.api.RScript.ReturnType.BOOLEAN.getCommand();
    } else if (returnType == ReturnType.INTEGER) {
        c = org.redisson.api.RScript.ReturnType.INTEGER.getCommand();
    } else if (returnType == ReturnType.MULTI) {
        c = org.redisson.api.RScript.ReturnType.MULTI.getCommand();
        return new RedisCommand(c, name, new BinaryConvertor());
    } else if (returnType == ReturnType.STATUS) {
        c = org.redisson.api.RScript.ReturnType.STATUS.getCommand();
    } else if (returnType == ReturnType.VALUE) {
        c = org.redisson.api.RScript.ReturnType.VALUE.getCommand();
        return new RedisCommand(c, name, new BinaryConvertor());
    }
    return new RedisCommand(c, name);
}