botman / tinker

Gives your Laravel chatbot the ability to try your chatbot in your local terminal.
99 stars 58 forks source link

Use redis cache on tinker #2

Closed iboldurev closed 7 years ago

iboldurev commented 7 years ago

hello when I try to use the Redis cache driver, I have a problem

Change BotManTinker Command file

$botman = BotManFactory::create($config, new RedisCache());

When I try to handle an exception triggered

[Exception] Serialization of 'Closure' is not allowed

mpociot commented 7 years ago

Tinker does not need to cache responses. That's why it only runs with the ArrayCache hardcoded.