Skip to content

PHP Extension built with Rust to implement redlock alogirthm

Notifications You must be signed in to change notification settings

ptondereau/ext-redlock-php

Repository files navigation

Redlock algorithm implementation for PHP in Rust

CI

Requirements

  • cargo-php
  • PHP with php-dev installed >= 8.1
  • Rust >= 1.61
  • CLang 5

Generating PHP stubs

cargo-php have a builtin feature to generate stubs but it's not finalized and stable enough. We use for the moment https://github.com/sasezaki/php-extension-stub-generator to generate with this current usage:

$ cargo build
$ php \
    -dextension=target/debug/libext_redlock_php.so \
    php-extension-stub-generator.phar dump-files ext-redlock-php stubs

What is redlock?

https://redis.io/docs/reference/patterns/distributed-locks/

TODO

  • Build for all supported versions of PHP
  • Create release artifacts for all PHP versions and OS plaform.

About

PHP Extension built with Rust to implement redlock alogirthm

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published