-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into predis-timeout
- Loading branch information
Showing
16 changed files
with
250 additions
and
92 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
extension=memcache.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
extension=memcached.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
extension=redis.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
/** | ||
* This file is part of ninja-mutex. | ||
* | ||
* (C) Kamil Dziedzic <arvenil@klecza.pl> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace NinjaMutex\Lock; | ||
|
||
|
||
class BasicLockInformationProvider implements LockInformationProviderInterface | ||
{ | ||
/** | ||
* @inheritdoc | ||
*/ | ||
public function getLockInformation() | ||
{ | ||
$pid = getmypid(); | ||
$hostname = gethostname(); | ||
|
||
$params = array(); | ||
$params[] = $pid; | ||
$params[] = $hostname; | ||
|
||
return $params; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
/** | ||
* This file is part of ninja-mutex. | ||
* | ||
* (C) Kamil Dziedzic <arvenil@klecza.pl> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace NinjaMutex\Lock; | ||
|
||
/** | ||
* Provides lock debugging information | ||
* @package NinjaMutex\Lock | ||
*/ | ||
interface LockInformationProviderInterface | ||
{ | ||
/** | ||
* Gathers lock debug information | ||
* @return array | ||
*/ | ||
public function getLockInformation(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
/** | ||
* This file is part of ninja-mutex. | ||
* | ||
* (C) Kamil Dziedzic <arvenil@klecza.pl> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace NinjaMutex\Lock; | ||
|
||
|
||
class ResolvedHostnameLockInformationProvider extends BasicLockInformationProvider | ||
{ | ||
/** | ||
* Adds resolved host IP to the provided information | ||
* (WARNING! Using DNS queries at runtime may introduce significant delays to script execution, use with caution!) | ||
* @return array | ||
*/ | ||
public function getLockInformation() | ||
{ | ||
$params = parent::gatherInformation(); | ||
$params[] = gethostbyname(gethostname()); | ||
|
||
return $params; | ||
} | ||
|
||
} |
Oops, something went wrong.