Skip to content

Commit

Permalink
README: Highlight syntax (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
olleolleolle authored May 29, 2024
1 parent 640f19c commit 059f1a9
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ call the same methods on it as you can call on a real `Redis` object.

For example:

>> require 'mock_redis'
>> mr = MockRedis.new
>> mr.set('some key', 'some value')
=> "OK"
>> mr.get('some key')
=> "some value"

```ruby
require 'mock_redis'
mr = MockRedis.new
mr.set('some key', 'some value') # => "OK"
mr.get('some key') # => "some value"
```
## Supported Features

mock_redis supports most of the methods that redis-rb does. Examples
Expand Down

0 comments on commit 059f1a9

Please sign in to comment.