RedisMock
RedisMock copied to clipboard
A simple PHP Redis mock
This is imperfect as we are not implementing the actual scan options, however for the purposes of mocking it should be sufficient for most uses cases. This allows the use...
Adding `zunionstore()` and `zcount()` methods. `predis` documentation states that `zcount` returns a string, but that's not the case
This pr adds `watch()` and `unwatch()` support. The methods don't do anything, like `eval()` and `quit()`.
This pr tries to stick with the redis documentation, which states that most of the `xxxget()` methods should return string values - `get()` - `hget()` - `hmget()` - `hgetall()` -...
The `scan()` method does not work when a slash character `/` is used in a key or in the match pattern. The reason behind this is because the character `/`...
The latest releases of Laravel have started using the sscan method to chunk results. RedisMock does not support this method. It would be really helpful to get this functionality added....
The `set` method signature on [RedisMock](https://github.com/BedrockStreaming/RedisMock/blob/master/src/M6Web/Component/RedisMock/RedisMock.php) seems to be wrong and store ttl in second. However `set` should support milliseconds for ttl definition. Proposal public function set($key, $value, $options =...
array_key_exists(): The first argument should be either a string or an integer at m6web/redis-mock/src/M6Web/Component/RedisMock/RedisMock.php:756 vendor/predis/predis/src/ClientInterface.php:69 * @method int hdel($key, array $fields)
- Updated the method code generation to support nullable and variadic params. This resolves issue #73. - Added a test case for validating that the php-redis implementation can be mocked.
Hi, I thought Predis transactions were supported - is that not correct? Here's the code I was trying to test: ```php function fetchMessages($redisClient) { $messages = $redisClient->zrevrangebyscore('myqueue', time(), 0); $queueId...