php-react-memcached icon indicating copy to clipboard operation
php-react-memcached copied to clipboard

Failed when key doesn't exists

Open Logioniz opened this issue 6 years ago • 2 comments

Suppose the QWER key does not exist. This code fails when trying to get a value by a nonexistent key:

<?php

$loader = require __DIR__ . '/vendor/autoload.php';

$loop = React\EventLoop\Factory::create();

use \seregazhuk\React\Memcached\Factory;

$memcached = Factory::createClient($loop);
$memcached->get('QWER')->then(
    function ($data) {
        echo $data;
    },
    function ($error) {
        echo $error;
    }
);

$loop->run();

Logioniz avatar Mar 27 '19 13:03 Logioniz

This seems to be a big issue - prevents me from using the client... :(

@seregazhuk Are you still supporting this library?

pfk84 avatar Mar 26 '22 14:03 pfk84

Please fix this! The cache library (https://github.com/seregazhuk/php-react-cache-memcached) is meaningless without this

SQKo avatar Aug 19 '22 07:08 SQKo