Letting someone else manage your data
Managing your own data
Beanstalkd
Simple queueing service
In-memeory container for your jobs
It just holds your jobs
So what is redis?
For More checkout redis.io
Notification
Redis & High Availability
Redis
& Sentinel
Redis::set('foo', 'Foo Value');
$foo = Redis::get('foo');
Redis::del('foo');
You have the full range of redis commands
$redis->set('foo', $value);
$redis = Redis::connection(); // default connection
$redis = Redis::connection('other-connection');
$redis->command('del', $key);
That's not all
Laravel Redis Drivers
Cacheing
Queueing
What about working with a redis cluster?
Sessions
What about High Availability with Sentinel?
Indatus/Laravel-PSRedis
Laravel, PHP, Sentinel, and Redis
Setting it up
<?php namespace Illuminate\Queue;
class RedisQueue extends Queue implements QueueInterface {
/**
* Create a new Redis queue instance.
*
* @param \Illuminate\Redis\Database $redis
* @param string $default
* @param string $connection
* @return void
*/
public function __construct(Database $redis, $default = 'default', $connection = null)
{
$this->redis = $redis;
$this->default = $default;
$this->connection = $connection;
}
...
}
Sparkcentral/PSRedis
Sentinel Wrapper for PHP Redis Clients
It talks to sentinel instead of redis
Replaces the Redis Service Provider