-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathConnection.php
36 lines (32 loc) · 939 Bytes
/
Connection.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
* @project phpredis-bloom
* @author Rafael Campoy <rafa.campoy@gmail.com>
* @copyright 2019 Rafael Campoy <rafa.campoy@gmail.com>
* @license MIT
* @link https://github.com/averias/phpredis-bloom
*
* Copyright and license information, is included in
* the LICENSE file that is distributed with this source code.
*/
namespace Averias\RedisBloom\Enum;
use MyCLabs\Enum\Enum;
class Connection extends Enum
{
const HOST = 'host';
const PORT = 'port';
const TIMEOUT = 'timeout';
const RETRY_INTERVAL = 'retryInterval';
const READ_TIMEOUT = 'readTimeout';
const PERSISTENCE_ID = 'persistenceId';
const DATABASE = 'database';
const DEFAULT = [
self::HOST => '127.0.0.1',
self::PORT => 6379,
self::TIMEOUT => 0.0,
self::RETRY_INTERVAL => 0,
self::READ_TIMEOUT => 0,
self::PERSISTENCE_ID => null,
self::DATABASE => 0
];
}