2017 © Pedro Peláez
 

symfony-bundle phpredis-bundle

A PhpRedis bundle for Symfony2

image

dawen/phpredis-bundle

A PhpRedis bundle for Symfony2

  • Monday, September 19, 2016
  • by dawen
  • Repository
  • 0 Watchers
  • 2 Stars
  • 18,878 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 3 Open issues
  • 9 Versions
  • 2 % Grown

The README.md

PhpRedisBundle

Symfony 2 Bundle for phpredis extension, (*1)


!!!WARNING

This bundle is under construction. It is highly recommended not using this bundle for production, (*2)


WORKING METHODS

  • hashes: hDel, hExists, hGet, hGetAll, hIncrBy, hIncrByFloat, hKeys, hLen, hMGet, hMSet, hSet
  • keys: del, dump, exists, expire, expireAt, keys, move, object, persist, randomKey, rename, renameNx, type, sort, ttl, restore
  • lists: brPop, blPop, brPoplPush, lGet, lGetRange, lInsert, lLen, lIndex, lPush, lPushx, lRange, lRem, lRemove, lSet, lSize, lTrim, ListTrim, rPop, rPopLPush, rPush, rPushx
  • sets: sAdd, sCard, sContains, sDiff, sDiffStore, sGetMembers, sInter, sInterStore, sIsMember, sMembers, sMove, sPop, sRandMember, sRem, sRemove, sSize, sUnion, sUnionStore
  • sorted sets: zAdd, zCard, zCount, zIncrBy, zInter, zRange, zRangeByScore, zRevRangeByScore, zRank, zRevRank, zSize
  • strings: append, bitCount, decr, get, getBit, getRange, getSet, incr, incrByFloat, mget, mset, set, setBit, setex, setnx, setRange, strlen
  • server: bgrewriteaof, bgsave, config, dbSize, flushAll, flushDB, info, lastSave, resetStat, save, slaveOf, time, slowlog
  • connection: auth, close, echo (cEcho), getOption, ping, select, setOption

Missing Integration Tests

  • keys: sort (waiting for sadd function)
  • lists: blPop, brPop,
  • server: resetStats, slaveOf

Methods Ignored

  • connection: connect, pconnect, open, popen
  • strings: delete, incrBy, decrBy, getMultiple, mSetNx, psetex
  • keys: getKeys, setTimeout, pexpire, pexpireAt, renameKey, pttl

Methods not working

  • strings: bitOp
  • keys: migrate

Method Informations

  • set: parameter timeout is defined as float in docbloc and function. It is an int or long. Float will rase an error
  • bitOf: always returns 0
  • migrate: returns false when successful
  • lTrim: listTrim: return value is commented as array. Bool will be returned
  • lPush: if optional parameter will be null, it inserts plank strings
  • rPush: if optional parameter will be null, it inserts plank strings
  • sDiff: Third param seems to be ignored
  • sDiffStore: Third param seems to be ignored
  • sInter: Third param seems to be ignored
  • sInterStore: Third param seems to be ignored
  • zInter: outKey is not stored, weight is not working

Configuration

here is a first sample configuration, (*3)

be aware of the logging flag. When you run many redis commands and logging is enabled on production system, you could get a memory limit exceeded error. The logger redis client is collecting every command in a data collector., (*4)

config.yml, (*5)

php_redis:
    clients:
        default:
            host: localhost
            port: ~
            db: 0
            pconnect: true
            logging: true
            connection_timeout: 1
        importstatus:
            host: localhost
            port: ~
            db: 1
            pconnect: true
            logging: true

Testing within Symfony2

for running the unit and integration tests add test parameters to your config: config_test.yml, (*6)

parameters:
  redis:
    host: localhost
    port: 6379
    db: 10
    db2: 9

Please keep in mind, that you have to run your own redis server., (*7)

Information The flushAll command will be performed in tests. It would be better to run an own instance for the tests, (*8)


The Versions

19/09 2016

dev-master

9999999-dev https://github.com/da-wen/PhpRedisBundle

A PhpRedis bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

redis symfony nosql phpredis

11/12 2015

v0.5.1

0.5.1.0 https://github.com/da-wen/PhpRedisBundle

A PhpRedis bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

redis symfony nosql phpredis

13/07 2015

v0.5.0

0.5.0.0 https://github.com/da-wen/PhpRedisBundle

A PhpRedis bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

redis symfony nosql phpredis

16/04 2015

v0.4.3

0.4.3.0 https://github.com/da-wen/PhpRedisBundle

A PhpRedis bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

redis symfony nosql phpredis

06/06 2014

v0.4.2

0.4.2.0 https://github.com/da-wen/PhpRedisBundle

A PhpRedis bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

redis symfony nosql phpredis

07/03 2014

v0.4.1

0.4.1.0 https://github.com/da-wen/PhpRedisBundle

A PhpRedis bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

redis symfony nosql phpredis

21/02 2014

v0.4.0

0.4.0.0 https://github.com/da-wen/PhpRedisBundle

A PhpRedis bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

redis symfony nosql phpredis

05/02 2014

v0.3.0

0.3.0.0 https://github.com/da-wen/PhpRedisBundle

A PhpRedis bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

redis symfony nosql phpredis

24/01 2014

v0.2.1

0.2.1.0 https://github.com/da-wen/PhpRedisBundle

A PhpRedis bundle for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

redis symfony nosql phpredis