Skip to content

Sometimes get different value for the same key #1

@Epica-Wang

Description

@Epica-Wang

Just found that this redis client can not assure to always return same value for the same key.
Please see the example below where I tried to access key myRedis:value several time, but there is only 2 times it returns the correct value Success(-0.91666666666666663).
Guarantee that no modification to value of this key during test blow

scala> redis.send("""GET "myRedis:value"""").map(s => s)
res10: scala.concurrent.Future[String] = Future(Success())

scala> redis.send("""GET "myRedis:value"""").map(s => s)
res11: scala.concurrent.Future[String] = Future(Success(-0.91666666666666663))

scala> redis.send("""GET "myRedis:value"""").map(s => s)
res12: scala.concurrent.Future[String] = Future(Success(-0.91666666666666663))

scala> redis.send("""GET "myRedis:value"""").map(s => s)
res13: scala.concurrent.Future[String] = Future(<not completed>)

scala> redis.send("""GET "myRedis:value"""").map(s => s)
res14: scala.concurrent.Future[String] = Future(Success())

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