Skip to content

Commit 9c01ed7

Browse files
committed
Adjusted encode location of driver_set
1 parent d6bb81e commit 9c01ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpfastcache/3.0.0/drivers/ssdb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ function connectServer() {
6262

6363
function driver_set($keyword, $value = "", $time = 300, $option = array()) {
6464
if ($this->connectServer()) {
65-
$value = $this->encode($value);
6665
if (isset($option['skipExisting']) && $option['skipExisting'] == true) {
6766
$x = $this->instant->get($keyword);
6867
if($x === false) {
@@ -71,6 +70,7 @@ function driver_set($keyword, $value = "", $time = 300, $option = array()) {
7170
return true;
7271
}
7372
}
73+
$value = $this->encode($value);
7474
return $this->instant->setx($keyword, $value, $time);
7575
} else {
7676
return $this->backup()->set($keyword, $value, $time, $option);

0 commit comments

Comments
 (0)