def METHOD_NAME(self, key, size=None, offset=0):
    key = RedisStore.build_redis_key(key)
    if offset < 0:
        raise mlrun.errors.MLRunInvalidArgumentError(
            "offset argument should be >= 0"
        )
    start_offset = offset
    if size is None:
        end_offset = -1
    elif size <= 0:
        raise mlrun.errors.MLRunInvalidArgumentError("size argument should be > 0")
    else:
        end_offset = start_offset + size - 1
    return self.redis.getrange(key, start_offset, end_offset)