redis / rueidis

A fast Golang Redis client that supports Client Side Caching, Auto Pipelining, Generics OM, RedisJSON, RedisBloom, RediSearch, etc.
Apache License 2.0
2.47k stars 158 forks source link

Add HExpire, HPExpire, HTTL, and HPTTL functions to rueidiscompat #607

Closed rueian closed 3 months ago

rueian commented 3 months ago

These new commands are introduced in Redis 7.4.0 and go-redis 9.6.0. We should catch them up in rueidiscompat by implementing the following TODOs.

https://github.com/redis/rueidis/blob/1e07e97e9cec2f742ba9fc4da7cdf31d55ab781c/rueidiscompat/adapter.go#L165-L177

References: https://github.com/redis/go-redis/blob/00d98485f8357d016139ece133bd3272e7ff2526/hash_commands.go#L207-L255