Skip to content

A simple prototype of an event log implement in Redis, with both a command and query side.

Notifications You must be signed in to change notification settings

barryosull/redis-eventlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redis EventLog

A simple event log implemented in Redis. Currently uses a Redis List implementation.

Usage

// Create the EventLog
$client = new Predis\Client();
$event_log = new ReventLog\Type\RedisList\ReventLog($client);
...
// Append events
$event_log->append($events);
...
// Fetch a stream from a position
$stream = $event->getStream($last_position);

// Iterate through the stream
while (($event = $stream->next() !== null) {
    // Do something with $event
}

About

A simple prototype of an event log implement in Redis, with both a command and query side.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages