Skip to content

Commit 3a3ee37

Browse files
author
Michael Grunder
committed
Merge pull request phpredis#264 from mixdev/patch-1
Update README.markdown
2 parents 20f555e + fc05cb9 commit 3a3ee37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2525,7 +2525,7 @@ A utility method to prefix the value with the prefix setting for phpredis.
25252525
If a prefix is set up, the value now prefixed. If there is no prefix, the value will be returned unchanged.
25262526
##### Examples
25272527
<pre>
2528-
$redis->setOpt(Redis::OPT_PREFIX, 'my-prefix:');
2528+
$redis->setOption(Redis::OPT_PREFIX, 'my-prefix:');
25292529
$redis->_prefix('my-value'); // Will return 'my-prefix:my-value'
25302530
</pre>
25312531

@@ -2538,7 +2538,7 @@ This can be useful if phpredis is serializing values, and you return something f
25382538
*value* string. The value to be unserialized
25392539
##### Examples
25402540
<pre>
2541-
$redis->setOpt(Redis::OPT_SERIALIZER, Redis::SERIALIZER_PHP);
2541+
$redis->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_PHP);
25422542
$redis->_unserialize('a:3:{i:0;i:1;i:1;i:2;i:2;i:3;}'); // Will return Array(1,2,3)
25432543
</pre>
25442544

0 commit comments

Comments
 (0)