Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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'));
});

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
4.2k views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share

Just Browsing Browsing

[2] html - How to create even cell spacing within a

548k questions

547k answers

4 comments

86.3k users

...