php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #58592 Arbitrary queries support.
Submitted: 2009-03-22 03:12 UTC Modified: -
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: whitephoenix at mail dot ru Assigned:
Status: Open Package: memcached (PECL)
PHP Version: Irrelevant OS: all
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
34 - 31 = ?
Subscribe to this entry?

 
 [2009-03-22 03:12 UTC] whitephoenix at mail dot ru
Description:
------------
Hello. I think it's important to support arbitrary queries in the API. Several projects extends Memcached server functionality, such as memcached-tag. For example, memcached-tag implements two new commands: tag_add and tag_delete. I think the best way to solve the problem is adding command(cmd, arg0, arg1, arg2,...) method returns an answer, and getConnection(server,port) (or getConnection(array) ) method returns pointer of connection to server.
And eventually it would be great to have such functionality (such as memcached-tag) built-in into extension.

memcached-tag - http://code.google.com/p/memcached-tag/

Thank you very much! Good luck.

Reproduce code:
---------------
$memcache->command('tag_add','mytag','myfirstkey');
$memcache->command('tag_add','mytag','mysecondkey');
$memcache->command('tag_delete','mytag');

Expected result:
----------------
Empty :)

Actual result:
--------------
Error :)

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Aug 25 17:01:29 2019 UTC