Skip to content

Commit e02d831

Browse files
committed
Added getKeyPrefix().
1 parent 469c4b9 commit e02d831

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

src/Lock.php

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,28 @@ static function getLocksDir()
2828
/**
2929
*
3030
* @param string $dir
31-
* @return string
3231
*/
3332
static function setLocksDir($dir)
3433
{
35-
return self::$dir = rtrim($dir, '\//') . '/';
34+
self::$dir = rtrim($dir, '\//') . '/';
3635
}
3736

3837
/**
3938
*
40-
* @param string $prefix
4139
* @return string
4240
*/
41+
static function getKeyPrefix()
42+
{
43+
return self::$keyPrefix;
44+
}
45+
46+
/**
47+
*
48+
* @param string $prefix
49+
*/
4350
static function setKeyPrefix($prefix)
4451
{
45-
return self::$keyPrefix = $prefix;
52+
self::$keyPrefix = $prefix;
4653
}
4754

4855
/**

0 commit comments

Comments
 (0)