2017 © Pedro Peláez
 

library predis-client-nette-extension

A Nette extension for the AWS SDK for PHP http://aws.amazon.com/sdkforphp/

image

ublaboo/predis-client-nette-extension

A Nette extension for the AWS SDK for PHP http://aws.amazon.com/sdkforphp/

  • Tuesday, March 20, 2018
  • by paveljanda
  • Repository
  • 2 Watchers
  • 0 Stars
  • 3,944 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 4 Versions
  • 29 % Grown

The README.md

Latest Stable Version License Total Downloads Gitter, (*1)

ublaboo/predis-client-nette-extension

Nette DIC extension for predis/predis client, (*2)

Installation

Download extension using composer, (*3)

composer require ublaboo/predis-client-nette-extension

Register extension in your config.neon file:, (*4)

extensions:
    predisClient: Ublaboo\PredisClientNetteExtension\DI\PredisClientNetteExtension

Configuration

Configure extension in your config.neon file:, (*5)

predisClient:
    uri: 'tcp://127.0.0.1:32768'
    options:
        prefix: 'fooPrefix:'
        # other options
    sessions: true # Whether to register redis session handler or not
    sessionsTtl: null # Seconds or null (null = ini_get('session.gc_maxlifetime'))

Usage

<?php

declare(strict_types=1);

use Predis\Client;

class Foo
{

    /**
     * @var Client
     */
    public $redisClient;


    public function __construct(Client $redisClient)
    {
        $this->redisClient = $redisClient;
    }


    public function save(string $key, string $value): void
    {
        $this->redisClient->set($key, $value);
    }


    public function retrive(string $key): ?string
    {
        return $this->redisClient->get($key);
    }

}

The Versions

20/03 2018

dev-master

9999999-dev https://github.com/ublaboo/predis-client-nette-extension

A Nette extension for the AWS SDK for PHP http://aws.amazon.com/sdkforphp/

  Sources   Download

MIT

The Requires

 

extension php amazon aws sdk nette di

20/03 2018

v1.1.0

1.1.0.0 https://github.com/ublaboo/predis-client-nette-extension

A Nette extension for the AWS SDK for PHP http://aws.amazon.com/sdkforphp/

  Sources   Download

MIT

The Requires

 

extension php amazon aws sdk nette di

14/09 2017

v1.0.1

1.0.1.0 https://github.com/ublaboo/predis-client-nette-extension

A Nette extension for the AWS SDK for PHP http://aws.amazon.com/sdkforphp/

  Sources   Download

MIT

The Requires

 

extension php amazon aws sdk nette di

03/07 2017

v1.0.0

1.0.0.0 https://github.com/ublaboo/predis-client-nette-extension

A Nette extension for the AWS SDK for PHP http://aws.amazon.com/sdkforphp/

  Sources   Download

MIT

The Requires

 

extension php amazon aws sdk nette di