feat: redis hgetall

main
sudo pacman -Syu 2023-07-19 10:34:07 +07:00
parent a382f0784a
commit 63850839d5
2 changed files with 12 additions and 0 deletions

View File

@ -567,6 +567,14 @@ internal
>Connect Redis with
<a href="https://github.com/redis/go-redis">redis/go-redis</a>
</h3>
<p>
Be careful when use
<a href="https://redis.io/commands/hgetall/" rel="nofollow">HGETALL</a>.
If key not found, empty data will be returned not nil error. See
<a href="https://github.com/redis/go-redis/issues/1668"
>redis/go-redis/issues/1668</a
>
</p>
<p>
Use
<a

View File

@ -288,6 +288,10 @@ I hear that [go-gorm/gorm](https://github.com/go-gorm/gorm), [ent/ent](https://g
### Connect Redis with [redis/go-redis](https://github.com/redis/go-redis)
Be careful when use [HGETALL](https://redis.io/commands/hgetall/).
If key not found, empty data will be returned not nil error.
See [redis/go-redis/issues/1668](https://github.com/redis/go-redis/issues/1668)
Use [Pipelines](https://redis.uptrace.dev/guide/go-redis-pipelines.html) for:
- HSET and EXPIRE in 1 command.