forked from abhinavsingh/memq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
22 lines (18 loc) · 749 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
MEMQ : Fast queue implementation using Memcached and PHP only
--------------------------------------------------------------
MEMQ is a fast queue implementation written in PHP using memcached as data store
Usage:
------
- MEMQ::is_empty($queue);
return TRUE if $queue is empty, else FALSE
- MEMQ::enqueue($queue, $item);
If $queue do not exist, MEMQ initialize it
Finally, Queue up passed $item in $queue
returns $id of the queued up item
- MEMQ::dequeue($queue, $after_id, $till_id);
Dequeue an item from $queue
$after_id and $till_id are optional paramaters for range dequeueing
Read More:
----------
For benchmarking and other pros/cons read:
http://abhinavsingh.com/blog/2010/02/memq-fast-queue-implementation-using-memcached-and-php-only/