Few words about my environment:
- laravel 8;
- osx bug sur,
- mamp, php7.4.2 (with igbinary.so, memcached.so)
- memcached (have installed with brew install memached)
When I starts the memcached demon and use test route to set()
and get()
data from memcached everything works properly.
But when I manually stops the memcached deamon, i want to see connection error exception in my app! Telnet said that connection is refused, but blank laravel app is still working (get()
returns null
, but no exception has been thrown).
What am I doing wrong? I want to see my exception)) Can any one help me? As I expect the application behaviour should be throwing an exception.
Sample:
Route::get('/', function () {
$cache = IlluminateSupportFacadesCache::store('memcached');
$cache->put('asd','asdasdasd asdas d ',3600); # this line returns false, but as I expects should throw an excpetion when memcached is down
dump($cache->get('asd'));
});
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…