trait RedisTrait
| static Redis|Client | createConnection(string $dsn, array $options = array()) Creates a Redis connection using a DSN configuration. | |
| doFetch(array $ids) {@inheritdoc} | ||
| doHave($id) {@inheritdoc} | ||
| doClear($namespace) {@inheritdoc} | ||
| doDelete(array $ids) {@inheritdoc} | ||
| doSave(array $values, $lifetime) {@inheritdoc} |
Creates a Redis connection using a DSN configuration.
Example DSN: - redis://localhost - redis://example.com:1234 - redis://[email protected]/13 - redis:///var/run/redis.sock - redis://secret@/var/run/redis.sock/13
| string | $dsn | |
| array | $options | See self::$defaultConnectionOptions |
| Redis|Client | According to the "class" option |
| InvalidArgumentException | when the DSN is invalid |
{@inheritdoc}
| array | $ids |
{@inheritdoc}
| $id |
{@inheritdoc}
| $namespace |
{@inheritdoc}
| array | $ids |
{@inheritdoc}
| array | $values | |
| $lifetime |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Cache/Traits/RedisTrait.html