缓存方式冲突的有办法解决吗?
我看其他的课程中写的邮件验证,是将token临时写入到缓存的,Cache::set('emailverification'.$notifiable->email, $token, 30);,这样的好像只能是file的缓存方式,改成array就不行了。但是这个geoip又只能用array缓存,这种情况怎么办?鱼与熊掌不能兼得吗?
关于 LearnKu
参考 https://learnku.com/docs/laravel/5.7/cache#cache-u... 的「Accessing Multiple Cache Stores」小节。
设定多个 stores 即可。