memcache.php can delete keys now

by Harun Yayli on Wednesday, July 30th, 2008 at 9:50 am under Memcached, PHP, pecl

I’m receiving great comments from everyone since I’ve posted my memcache.php script. Thank you everyone.
I’ve just finished updating the memcache.php to support key deletion.
File is now updated and you can get it from here.
It’ll be updated on the cvs of pecl/memcache soon.

enjoy.

Recent Entries

4 Responses to “memcache.php can delete keys now”

  1. Marcus Müller Says:

    Nice script. I added an anchor around line 796, so on large lists you can directly jump to a dumped slab:

    code

    $j = 0;
    foreach($items as $server => $entries) {
    $j++;
    echo <<< EOB

    $server
    Slab IdInfo
    EOB;

    foreach($entries as $slabId => $slab) {
    $dumpUrl = $PHP_SELF.’&op=2&server=’.(array_search($server,$MEMCACHE_SERVERS)).’&dumpslab=’.$slabId.’#’.$j.’_’.$slabId;

    echo
    “”,
    “,’‘,$slabId,’‘,”",


    /code

    Keep it up ;)

  2. Marcus Müller Says:

    As expected, the code got borked… I guess you got the idea anyway.

  3. Harun Yayli Says:

    @marcus

    Thanks!

  4. Halbert Says:

    Awsome app!

    I keep getting this error:

    Notice: Undefined index: evicted in memcache.php on line 811

Leave a Reply

authimage