You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure how aggressive we should be in terms of the deprecations as many people are still using old versions of Redis. I wouldn't want to break people's code if we don't need to.
Also can you clarify the CLIENT KILL deprecation. I'm probably missing something obvious but it doesn't seem deprecated to me. 😄
I'm not sure how aggressive we should be in terms of the deprecations as many people are still using old versions of Redis
As a first step, I would suggest to only update the docs with clear @deprecated tags for those functions and ensure their replacement is documented, to ensure people who do not use phpredis yet, won't use any of these deprecated functions.
Additionally the stubs phpdoc should get a @deprecated tag added, so static analysis tools will pick up on that, to allow for a gradual transition from deprecated functions.
Since Redis itself has only marked it deprecated but not actually deprecated, I think this is sufficient to ensure consistency between Redis and phpredis docs and awareness that these functions will eventually be deprecated.
Also can you clarify the CLIENT KILL deprecation. I'm probably missing something obvious but it doesn't seem deprecated to me.
Yeah sorry that description was a bit wonky. Fixed now:
Redis deprecated various methods that should also be deprected in phpredis.
Data taken from https://redis.io/commands.json
deprecated_since: 6.2.0
replaced_by:
BLMOVE
with theRIGHT
andLEFT
arguments=> BLMOVE does not have documentation yet for phpredis
deprecated_since: 2.8.12
=> docs only to remove "old format" and document "new format" https://redis.io/commands/client-kill/
deprecated_since: 6.2.0
replaced_by:
GEOSEARCH
andGEOSEARCHSTORE
with theBYRADIUS
argument=> the replacements aren't documented in phpredis yet
deprecated_since: 6.2.0
replaced_by:
GEOSEARCH
andGEOSEARCHSTORE
with theBYRADIUS
andFROMMEMBER
arguments=> see 3)
deprecated_since: 6.2.0
replaced_by:
SET
with the!GET
argument=> the function should be deprecated and SET documented for this use case
deprecated_since: 4.0.0
replaced_by:
HSET
with multiple field-value pairs=> the function should be deprecated and HSET documented for this use case
SETEX
deprecated_since: 2.6.12
replaced_by:
SET
with theEX
argumentand
PSETEX
deprecated_since: 2.6.12
replaced_by:
SET
with thePX
argument=> function should be deprecated and documentation updated with an example for set/pset
deprecated_since: 6.2.0
replaced_by:
LMOVE
with theRIGHT
andLEFT
arguments=> LMOVE isn't documented in phpredis yet
deprecated_since: 2.6.12
replaced_by:
SET
with theNX
argument=> deprecated method and remove from docs, the "nx" behavior is already sufficiently documented in the replacement https://github.com/phpredis/phpredis?tab=readme-ov-file#set
deprecated_since: 5.0.0
replaced_by:
REPLICAOF
=> the replacement isn't documented in phpredis yet
deprecated_since: 6.2.0
replaced_by:
ZRANGE
with theBYLEX
argument=> the replacement https://github.com/phpredis/phpredis?tab=readme-ov-file#zrange doesn't currently support the arguments needed or are only the docs outdated?
ZRANGEBYSCORE
deprecated_since: 6.2.0
replaced_by:
ZRANGE
with theBYSCORE
argumentand
ZREVRANGEBYSCORE
deprecated_since: 6.2.0
replaced_by:
ZRANGE
with theREV
andBYSCORE
arguments=> see 11)
deprecated_since: 6.2.0
replaced_by:
ZRANGE
with theREV
argument=> see 11)
The text was updated successfully, but these errors were encountered: