Skip to content

get return value in list context inconsistent with Cache::Memcached on cache miss #24

Description

@JRaspass

Migrated from rt.cpan.org #59827 (status was 'new')

Requestors:

From bundacia@cpan.org on 2010-07-29 15:59:34
:

This isn't critical, but more on an FYI.

The get method in Cache::Memcached return undef on a cache miss, even in list context.
The get method in Cache::Memcached::Fast returns the empty list in list context on a cache
miss.

This caused one of our tests to break when we switched from Cache::Memcached to
Cache::Memcached::Fast. It was simple for us to change the test to work with ::Fast, but I
thought I'd bring it to your attention so it doesn't surprise anybody else.

-bundacia

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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