We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3314d40 commit 7f1cf35Copy full SHA for 7f1cf35
lib/Resque/Redis.php
@@ -113,5 +113,20 @@ public function __call($name, $args) {
113
return false;
114
}
115
116
+
117
+ public static function getPrefix()
118
+ {
119
+ return self::$defaultNamespace;
120
+ }
121
122
+ public static function removePrefix($string)
123
124
+ $prefix=self::getPrefix();
125
126
+ if (substr($string, 0, strlen($prefix)) == $prefix) {
127
+ $string = substr($string, strlen($prefix), strlen($string) );
128
129
+ return $string;
130
131
132
?>
0 commit comments