src/voku/cache/AdapterMemcache.php 1 location
|
@@ 92-100 (lines=9) @@
|
| 89 |
|
/** |
| 90 |
|
* @inheritdoc |
| 91 |
|
*/ |
| 92 |
|
public function set($key, $value) |
| 93 |
|
{ |
| 94 |
|
// Make sure we are under the proper limit |
| 95 |
|
if (strlen($key) > 250) { |
| 96 |
|
throw new InvalidArgumentException('The passed cache key is over 250 bytes:' . print_r($key, true)); |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
return $this->memcache->set($key, $value, $this->getCompressedFlag()); |
| 100 |
|
} |
| 101 |
|
|
| 102 |
|
/** |
| 103 |
|
* @inheritdoc |
src/voku/cache/AdapterMemcached.php 1 location
|
@@ 89-97 (lines=9) @@
|
| 86 |
|
/** |
| 87 |
|
* @inheritdoc |
| 88 |
|
*/ |
| 89 |
|
public function set($key, $value) |
| 90 |
|
{ |
| 91 |
|
// Make sure we are under the proper limit |
| 92 |
|
if (strlen($this->memcached->getOption(\Memcached::OPT_PREFIX_KEY) . $key) > 250) { |
| 93 |
|
throw new InvalidArgumentException('The passed cache key is over 250 bytes:' . print_r($key, true)); |
| 94 |
|
} |
| 95 |
|
|
| 96 |
|
return $this->memcached->set($key, $value); |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
/** |
| 100 |
|
* @inheritdoc |