php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #58795 Using closures/functions with multi get
Submitted: 2009-08-07 15:34 UTC Modified: 2021-06-09 11:17 UTC
From: Jared dot Williams1 at ntlworld dot com Assigned: cmb (profile)
Status: Closed Package: memcached (PECL)
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Jared dot Williams1 at ntlworld dot com
New email:
PHP Version: OS:

 

 [2009-08-07 15:34 UTC] Jared dot Williams1 at ntlworld dot com
Description:
------------
Probably a little much asking for this, but I think it'll 
helps in 
consolidating multiple calls for differing types of value 
from 
memcached into one getMulti/getDelayed style call..


$keys = array(
'Key1' => function($value) { ... },
'Key2' => function($value) { ... },
);

$memCached->get...($keys);

Instead of having to 

$r = $this->cache->getMulti(array_keys($keys));
if (is_array($r))
   foreach($r as $key => $value)
     $keys[$key]($value);



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-06-09 11:17 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-06-09 11:17 UTC] cmb@php.net
The memcached bug tracker is now on Github[1].  If this is still
an issue with the current memcached version, please report there.

[1] <https://github.com/php-memcached-dev/php-memcached/issues>
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Sep 24 04:03:36 2021 UTC