Skip to content

Commit 9c59a15

Browse files
committed
possible fix for #430 - memcache_set expects flags: to be an int, cannot provide null. Only option possible is perhaps MEMCACHE_COMPRESSED?
1 parent d913dea commit 9c59a15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Stash/Driver/Sub/Memcache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function set($key, $value, $expire = null)
6565
return true;
6666
}
6767

68-
return $this->memcached->set($key, array('data' => $value, 'expiration' => $expire), null, $expire);
68+
return $this->memcached->set($key, array('data' => $value, 'expiration' => $expire), MEMCACHE_COMPRESSED, $expire);
6969
}
7070

7171
/**

0 commit comments

Comments
 (0)