Skip to content

fix: Restore 3.1.x-compatible Redis counters and reads. Follow-up to #82. - #83

Merged
pocketarc merged 2 commits into
developfrom
fix/redis-counter-follow-up
Nov 2, 2026
Merged

pocketarc merged 2 commits into
developfrom
fix/redis-counter-follow-up

Conversation

@pocketarc

Copy link
Copy Markdown
Owner

No description provided.

@pocketarc
pocketarc merged commit 67486ec into develop Nov 2, 2026
186 checks passed
@pocketarc
pocketarc deleted the fix/redis-counter-follow-up branch November 2, 2026 12:37
{
// Also serves scalars that 3.1.x cached as plain strings, incrBy creates the key if not existing
if ($this->_redis->type($id) === Redis::REDIS_STRING)
$value = $this->_redis->incrBy($id, $offset);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pocketarc, with this change, you are giving precedence to the old 3.1.x structure. I think it is best to migrate everything to the new 3.2-dev; that's why I have added the check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants