Skip to content

Failed when key doesn't exists #19

Open
@Logioniz

Description

@Logioniz

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions