Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Cache] Redis clear cursor error with Valkey #58660

Closed
@thomas-hiron

Description

@thomas-hiron

Symfony version(s) affected

7.1.2

Description

I'm trying to flush doctrine metadata using Redis adapter with Valkey 8.0.
TheRedisTrait sends the following query to Valkey:SCAN NULL on the first loop iteration, which leads to errorERR invalid cursor.

Shouldn't the cursor variable initialized to value0?
I've patched the file with$cursor = 0; instead, andbin/console doctrine:cache:clear-metadata works as expected.

How to reproduce

I'm using the following configuration:

doctrine:orm:metadata_cache_driver:type:poolpool:doctrine_redisframework:cache:pools:doctrine_redis:adapter:cache.adapter.redisprovider:snc_redis.doctrine_metadata_cachesnc_redis:clients:doctrine_metadata_cache:type:predisalias:doctrine_metadata_cachedsn:"%env(REDIS_URL)%/3"options:connection_timeout:10read_write_timeout:30

And runbin/console doctrine:cache:clear-metadata to get the error.

You can also use directlyvalkey-cli SCAN NULL

Possible Solution

Initialize the cursor variable with 0.

Additional Context

No response

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp