Skip to content
Permalink
Browse files

Fix method name casing.

  • Loading branch information...
ADmad committed Oct 16, 2018
1 parent eef876c commit 6577ba69abd204d6b372a95259c94b9a6392e49f
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Cache/Engine/RedisEngine.php
@@ -140,7 +140,7 @@ public function write($key, $value)
return $this->_Redis->set($key, $value);
}
return $this->_Redis->setex($key, $duration, $value);
return $this->_Redis->setEx($key, $duration, $value);
}
/**
@@ -256,8 +256,8 @@ public function add($key, $value)
$value = serialize($value);
}
// setnx() doesn't have an expiry option, so follow up with an expiry
if ($this->_Redis->setnx($key, $value)) {
// setNx() doesn't have an expiry option, so follow up with an expiry
if ($this->_Redis->setNx($key, $value)) {
return $this->_Redis->setTimeout($key, $duration);
}

0 comments on commit 6577ba6

Please sign in to comment.
You can’t perform that action at this time.