src/phpFastCache/Drivers/Leveldb/Driver.php 1 location
|
@@ 107-117 (lines=11) @@
|
104 |
|
* @return bool |
105 |
|
* @throws phpFastCacheInvalidArgumentException |
106 |
|
*/ |
107 |
|
protected function driverDelete(CacheItemInterface $item) |
108 |
|
{ |
109 |
|
/** |
110 |
|
* Check for Cross-Driver type confusion |
111 |
|
*/ |
112 |
|
if ($item instanceof Item) { |
113 |
|
return $this->instance->delete($item->getKey()); |
114 |
|
} else { |
115 |
|
throw new phpFastCacheInvalidArgumentException('Cross-Driver type confusion detected'); |
116 |
|
} |
117 |
|
} |
118 |
|
|
119 |
|
/** |
120 |
|
* @return bool |
src/phpFastCache/Drivers/Predis/Driver.php 1 location
|
@@ 110-120 (lines=11) @@
|
107 |
|
* @return bool |
108 |
|
* @throws phpFastCacheInvalidArgumentException |
109 |
|
*/ |
110 |
|
protected function driverDelete(CacheItemInterface $item) |
111 |
|
{ |
112 |
|
/** |
113 |
|
* Check for Cross-Driver type confusion |
114 |
|
*/ |
115 |
|
if ($item instanceof Item) { |
116 |
|
return $this->instance->del([$item->getKey()]); |
117 |
|
} else { |
118 |
|
throw new phpFastCacheInvalidArgumentException('Cross-Driver type confusion detected'); |
119 |
|
} |
120 |
|
} |
121 |
|
|
122 |
|
/** |
123 |
|
* @return bool |
src/phpFastCache/Drivers/Redis/Driver.php 1 location
|
@@ 106-116 (lines=11) @@
|
103 |
|
* @return bool |
104 |
|
* @throws phpFastCacheInvalidArgumentException |
105 |
|
*/ |
106 |
|
protected function driverDelete(CacheItemInterface $item) |
107 |
|
{ |
108 |
|
/** |
109 |
|
* Check for Cross-Driver type confusion |
110 |
|
*/ |
111 |
|
if ($item instanceof Item) { |
112 |
|
return $this->instance->del($item->getKey()); |
113 |
|
} else { |
114 |
|
throw new phpFastCacheInvalidArgumentException('Cross-Driver type confusion detected'); |
115 |
|
} |
116 |
|
} |
117 |
|
|
118 |
|
/** |
119 |
|
* @return bool |
src/phpFastCache/Drivers/Memcached/Driver.php 1 location
|
@@ 108-118 (lines=11) @@
|
105 |
|
* @return bool |
106 |
|
* @throws phpFastCacheInvalidArgumentException |
107 |
|
*/ |
108 |
|
protected function driverDelete(CacheItemInterface $item) |
109 |
|
{ |
110 |
|
/** |
111 |
|
* Check for Cross-Driver type confusion |
112 |
|
*/ |
113 |
|
if ($item instanceof Item) { |
114 |
|
return $this->instance->delete($item->getKey()); |
115 |
|
} else { |
116 |
|
throw new phpFastCacheInvalidArgumentException('Cross-Driver type confusion detected'); |
117 |
|
} |
118 |
|
} |
119 |
|
|
120 |
|
/** |
121 |
|
* @return bool |
src/phpFastCache/Drivers/Memcache/Driver.php 1 location
|
@@ 115-125 (lines=11) @@
|
112 |
|
* @return bool |
113 |
|
* @throws phpFastCacheInvalidArgumentException |
114 |
|
*/ |
115 |
|
protected function driverDelete(CacheItemInterface $item) |
116 |
|
{ |
117 |
|
/** |
118 |
|
* Check for Cross-Driver type confusion |
119 |
|
*/ |
120 |
|
if ($item instanceof Item) { |
121 |
|
return $this->instance->delete($item->getKey()); |
122 |
|
} else { |
123 |
|
throw new phpFastCacheInvalidArgumentException('Cross-Driver type confusion detected'); |
124 |
|
} |
125 |
|
} |
126 |
|
|
127 |
|
/** |
128 |
|
* @return bool |