|
@@ -91,8 +91,8 @@ |
|
|
block discarded – undo |
|
91
|
91
|
public function set(string $key, $value): bool |
|
92
|
92
|
{ |
|
93
|
93
|
// Make sure we are under the proper limit |
|
94
|
|
- if (\strlen($this->memcached->getOption(Memcached::OPT_PREFIX_KEY) . $key) > 250) { |
|
95
|
|
- throw new InvalidArgumentException('The passed cache key is over 250 bytes:' . \print_r($key, true)); |
|
|
94
|
+ if (\strlen($this->memcached->getOption(Memcached::OPT_PREFIX_KEY).$key) > 250) { |
|
|
95
|
+ throw new InvalidArgumentException('The passed cache key is over 250 bytes:'.\print_r($key, true)); |
|
96
|
96
|
} |
|
97
|
97
|
|
|
98
|
98
|
return $this->memcached->set($key, $value); |
Please login to merge, or discard this patch.