Hello. It would be great to add  new "wait timeout" argument to the get
() method. If it is defined and the key doesn't exists a the moment,
client should wait untill the key will be added or untill the timeout
will be reached (client gets false in this case) and get feedback as
soon as possible.
It can be used at many cases.
For example, I shall use it to improve my IMemcacheClient (http://
code.google.com/p/imemcacheclient-php/) in the following aspects:
1. Improving acquire() method, it will have no necessary to repeat
acquire() tries.
2. In my distributed queues system, getNext() will have no necessary
to repeat get() tries when it's waiting for new messages.

Internally, I think it necessary to create a hash of connections
waiting for the key (key -> clients), and hook the set() and add()
methods to send value _after_ the operation and asynchronous to
original client calling set() or add() method.

Thank you.

Reply via email to