Skip to content

A simple PHP based implementation of a queuing system over memcache

Notifications You must be signed in to change notification settings

meetrajesh/php-memqueue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

php-memqueue
============

Synopsis
--------
php-memqueue is a simple PHP-based implementation of memqueue over memcache

Author
------
Rajesh Kumar <[email protected]>

Coded on
--------
Sunday, 9th January 2011

Usage
-----

$q = new memq('testq');
echo $q->count();
echo $q->is_empty();
$q->push('a');
$q->push('b');
$q->push('c');
echo $q->count();
echo $q->is_empty();
echo $q->peek();
echo $q->pop();
echo $q->count();
echo $q->pop();
$q->push('d');

$q2 = new memq('testq2');
$q2->push('a2');

echo $q->pop();
echo $q->peek();
echo $q->pop();
echo $q->pop();
echo $q->peek();

echo $q2->pop();

$q3 = new memq('testq3');
$q3->push('a');
$q3->push('b');
$q3->push('c');
$q3->delete();
echo $q3->count();

About

A simple PHP based implementation of a queuing system over memcache

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages