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