Update redis.py

supporting setex method:

```python 
txn = redis_client.pipeline()
txn.setex(cache_key, data, timeout)
```

'MockRedisPipeline' object has no attribute 'setex'