* @return ICacheDriver The instance of the CacheDriver
* @throws \Exception The exception if something went wrong during the CacheDriver creation
*/
- public static function create(string $driver) : ICacheDriver {
+ public static function create(string $driver) {
switch ($driver) {
case 'memcache':
* @param string key The Name of the lock
* @return bool Returns true if the lock is set
*/
- protected function hasAcquiredLock(string $key): bool {
+ protected function hasAcquiredLock(string $key) {
return isset($this->acquireLock[$key]);
}
*
* @return integer the semaphore key
*/
- private static function semaphoreKey(string $key): int
+ private static function semaphoreKey(string $key)
{
$temp = get_temppath();