The Hash structure already supports some commonly used APIs, like HSet, HGet, etc. You can implement more apis for it.
| API |
Explanation |
assigned |
done |
| HSET key field value |
Set the value of a field in a hash. |
@bigboss2063 |
✅ |
| HGET key field |
Get the value of a field in a hash. |
@bigboss2063 |
✅ |
| HMSET key field value [field value ...] |
Set multiple fields and values in a hash. |
@bigboss2063 |
✅ |
| HMGET key field [field ...] |
Get the values of one or more fields in a hash. |
@bigboss2063 |
✅ |
| HDEL key field [field ...] |
Delete one or more fields from a hash. |
@bigboss2063 |
✅ |
| HEXISTS key field |
Check if a field exists in a hash. |
@bigboss2063 |
✅ |
| HGetAll key |
Get all the fileds and the values in a hash. |
@bigboss2063 |
✅ |
| HLEN key |
Get the number of fields in a hash. |
@99HU |
✅ |
| HKEYS key |
Get all the field names in a hash. |
@99HU |
✅ |
| HVALS key |
Get all the values in a hash. |
@99HU |
✅ |
| HStrLen key field |
Get the length of value of a field in a hash |
@99HU |
✅ |
Anyone who wants to implement other api is welcome to comment below!
现在 Hash 数据结构已经实现了一些常用的接口,比如 HSet、HGet 等等。可以为它实现更多的接口。
还有想实现其他接口的朋友欢迎在下面评论出来!
The Hash structure already supports some commonly used APIs, like HSet, HGet, etc. You can implement more apis for it.
Anyone who wants to implement other api is welcome to comment below!
现在 Hash 数据结构已经实现了一些常用的接口,比如 HSet、HGet 等等。可以为它实现更多的接口。
还有想实现其他接口的朋友欢迎在下面评论出来!