简化 Redis 管道与事务操作 #5001
huangdijia
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel 对 Redis 的管道与事务做了封装,使用起来特别简单、方便
Hyperf 的 Redis 为了保持与原生的一致性,并未做任何封装。如果想要体验像 Laravel 一样的简便怎么办?也不复杂,也不做过多的思路讲解,解决方案就是 classMap,原因有几个:
最终决定对
Hyperf\Redis\ScanCaller
下手。配置 classMap
使用方法
Beta Was this translation helpful? Give feedback.
All reactions