12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- defined('GNUSOCIAL') || die();
- class RedisQueuePlugin extends Plugin
- {
- const PLUGIN_VERSION = '0.1.0';
-
- public $server = null;
- public function onStartNewQueueManager(?QueueManager &$qm)
- {
- $qm = new RedisQueueManager($this->server);
- return false;
- }
- public function onPluginVersion(array &$versions): bool
- {
- $versions[] = [
- 'name' => 'RedisQueue',
- 'version' => self::PLUGIN_VERSION,
- 'author' => 'Miguel Dantas',
- 'homepage' => GNUSOCIAL_ENGINE_URL,
- 'description' =>
-
- _m('Plugin implementing Redis as a backend for GNU social queues')
- ];
- return true;
- }
- };
|