Skip to content

Hybrid caching unreliable across process since version 1.2.0 #283

@brutaldev

Description

@brutaldev

Description

Since updating to version 1.2.0, reading hybrid cache values across processes return stale data. Each process always returns the last cache value that the process itself set. This problem does not occur in version 1.1.0.

Steps to Reproduce

  1. Start process Merge dev branch. #1, cache an object.
  2. Object will be in memory and Redis with correct values.
  3. Start process Merge new commits. #2, cache different object values with the same key.
  4. Object will be in memory and is updated in Redis correctly.
  5. Read cache key in process Merge dev branch. #1, notice the value is stale from memory and not what is currently in Redis
  6. Do this with as many processes as you want, they will all contain different values.

Expected behavior: Cache is invalidated in other processes via the Redis Bus. Version 1.1.0 works correctly as expected.

Actual behavior: Cache is not invalidated across process instances so they always read what's in their memory cache.

Specifications

  • Provider : InMemory + Redis (version 1.2.0)
  • Interceptor : None
  • Serializer : Json
  • System : Windows 10

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions