|  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: -
From: Jared dot Williams1 at ntlworld dot com Assigned:
Status: Open Package: memcached (PECL)
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

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

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


Instead of having to 

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


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Feb 18 01:01:26 2020 UTC