Client/PHPRedis.php
public function generateKey($kp)
    {
        $arguments = func_get_args();

        if (is_array($arguments[0])) {
            $arguments = $arguments[0];
        }

        return implode(':', $arguments);
    }
public function generateKey($kp)
    {
        $arguments = func_get_args();

        if (is_array($arguments[0])) {
            $arguments = $arguments[0];
        }

        return implode(':', $arguments);
    }
Generate cache key from method arguments.

Example:
<code>
// string arguments
$key = $redis->generateKey('some', 'part', 'of', 'key'); // returns: "some:part:of:key"

// array argument
$key = $redis->generateKey(['some', 'part', 'of', 'key']); // returns: "some:part:of:key"
</code>

@param string|array $kp,... List of parameters to use in key generation

@return string