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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: marc-bennewitz at arcor dot de
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sun Dec 22 11:01:30 2024 UTC