php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #59115 add method Memcached::dump
Submitted: 2010-03-13 18:22 UTC Modified: 2012-03-07 17:27 UTC
From: marc-bennewitz at arcor dot de Assigned: andrei (profile)
Status: Closed Package: memcached (PECL)
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2010-03-13 18:22 UTC] marc-bennewitz at arcor dot de
Description:
------------
I noticed that libmemcached implemented a function to receive all keys of the servers named memcached_dump.
-> http://docs.tangent.org/libmemcached/memcached_dump.html

This would be very useful and could be implemented similar to APCIterator.

Reproduce code:
---------------
$flags = Memcached::DUMP_NONE // = 0
       | Memcached::DUMP_VALUE // receive data
       | Memcached::DUMP_MTIME // receive mtime
// ... possible flags

$rsSet = $memcached->dump($flags);
var_dump($rsSet);
foreach ($rsSet as $key => $rs) {
    var_dump($key;
    var_dump($rs);
}

Expected result:
----------------
object(MemcachedResultSet)#1 (0) {
}
string(7) "testKey"
array(2) {
  ["value"]=>
  string(8) "testData"
  ["mtime"]=>
  int(1268522244)
}
// ...

Actual result:
--------------
-

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-07 17:27 UTC] andrei@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: andrei
 [2012-03-07 17:27 UTC] andrei@php.net
Implemented as getAllKeys().
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 11:01:27 2024 UTC