Latest release: v0.1

Redis

Predis integration into Nette/DI

Content

Usage

extensions:
    redis: Contributte\Redis\DI\RedisExtension
1
2

Configuration

redis:
    # Setup Tracy panel
    debug: %debugMode%

    connection:
        default:
            uri: tcp://127.0.0.1:6379

            # Options passed directly to Predis\Client
            # https://github.com/nrk/predis#client-configuration
            options: []
1
2
3
4
5
6
7
8
9
10
11

Sessions

Setup Nette\Http\Session to store session with Redis

redis:
    connection:
        default:
            sessions: true

            ## you can also configure session
            sessions:
                ttl: null # time after which is session invalidated
1
2
3
4
5
6
7
8

Cache

Replaces Nette\Caching\IStorage in DIC with RedisStorage

redis:
    connection:
        default:
            storage: false
1
2
3
4