Search code examples
phpredispredis

Call a redis command outside of transaction context


Is it possible to call a predis command outside of transaction context? I mean to exec hget or hexist while a transaction is opened


Solution

  • No, it`s not possible. Transaction started with (MULTI) works in per connection pipeline. So you should DISCARD/EXEC first or use another predis connection to Redis server.