Skip to content

fork support #50

@renkun-ken

Description

@renkun-ken

I tested the capability of the client in fork process under linux.

library(parallel)

redis <- redux::hiredis(host = "my-redis-host")
redis$AUTH(password)

tasks <- list(
  task1 = mcparallel({
    redis$HKEYS("test1")
  }),
  task2 = mcparallel({
    redis$HSET("test1", "key1", format(rnorm(1)))
  }),
  task3 = mcparallel({
    redis$HSET("test1", "key2", format(rnorm(1)))
  })
)
result <- mccollect(tasks)
result

Unlike #19, in this case, the redis client could still work properly. Is there a guarantee that the client should work in this case due to some statelessness of the client?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions