NAME

POE::Component::MessageQueue::Storage::Memory -- In memory storage backend.

SYNOPSIS

use POE;
use POE::Component::MessageQueue;
use POE::Component::MessageQueue::Storage::Memory;
use strict;

POE::Component::MessageQueue->new({
  storage => POE::Component::MessageQueue::Storage::Memory->new()
});

POE::Kernel->run();
exit;

DESCRIPTION

A storage backend that keeps all the messages in memory. Provides no persistence what-so-ever.

I wouldn't suggest using this as your main storage backend because if messages aren't removed by consumers, it will continue to consume more memory until it explodes. Check-out POE::Component::MessageQueue::Complex which uses this module internally to keep messages in memory for a period of time before moving them into persistent storage.

CONSTRUCTOR PARAMETERS

None to speak of!

SEE ALSO

POE::Component::MessageQueue, POE::Component::MessageQueue::Storage, POE::Component::MessageQueue::Storage::DBI, POE::Component::MessageQueue::Storage::FileSystem, POE::Component::MessageQueue::Storage::Complex