dever %!s(int64=7) %!d(string=hai) anos
pai
achega
e4dad5a5f0
Modificáronse 2 ficheiros con 1 adicións e 5 borrados
  1. 1 1
      src/Queue.php
  2. 0 4
      src/Redis.php

+ 1 - 1
src/Queue.php

@@ -26,7 +26,7 @@ class Queue implements Core
 	public function push($value, $key = false)
 	{
 		$value = json_encode($value, JSON_UNESCAPED_UNICODE);
-		$this->db->push($this->key($key), $value);
+		return $this->db->push($value, $this->key($key));
 	}
 
 	public function pop($key = false)

+ 0 - 4
src/Redis.php

@@ -21,10 +21,6 @@ class Redis implements Core
 		if (isset($config['password'])) {
 			$this->db->auth($config['password']);
 		}
-
-		if (isset($config['key']) && $config['key']) {
-			$this->key = $config['key'];
-		}
 	}
 
 	public function push($value, $key)