Skip to content

Commit

Permalink
Merge HMGET and WITHSCORES with static storage
Browse files Browse the repository at this point in the history
  • Loading branch information
Julia committed Jul 30, 2014
2 parents 825490f + 16f316e commit 6e5f02f
Show file tree
Hide file tree
Showing 2 changed files with 129 additions and 126 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Add this line in your `composer.json` :
```json
{
"require": {
"m6web/redis-mock": "~1.2"
"m6web/redis-mock": "~2.0"
}
}
```
Expand Down Expand Up @@ -88,7 +88,10 @@ $factory = new \M6Web\Component\RedisMock\RedisMockFactory();
$myRedisMock = $factory->getAdapter('My\Redis\Library');
```

**WARNING !** *RedisMock doesn't implement all Redis features and commands. The mock can have undesired behavior if your parent class uses unsupported features.*
**WARNING !**

* *RedisMock doesn't implement all Redis features and commands. The mock can have undesired behavior if your parent class uses unsupported features.*
* *Storage is static and therefore shared by all instances.*

*Note : the factory will throw an exception by default if your parent class implements unsupported commands. If you want even so partially use the mock, you can specify the second parameter when you build it `$factory->getAdapter('My\Redis\Library', true)`. The exception will then thrown only when the command is called.*

Expand Down
Loading

0 comments on commit 6e5f02f

Please sign in to comment.