Skip to content
Fast queue implementation using Memcached and PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README
memq.class.php

README

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/
You can’t perform that action at this time.