Commit bc1ccc87 authored by Emiliano Balbuena's avatar Emiliano Balbuena

(chore): Change cache prefix

1 merge request!2WIP: Clean up and strategies
Pipeline #105672936 passed with stage
in 1 minute and 9 seconds
......@@ -161,6 +161,6 @@ class Client
$this->config->getApplicationName(),
$this->config->getInstanceId(),
$this->config->getVersion()
])), 4, 16);
])), 4, 9);
}
}
......@@ -9,6 +9,8 @@ use Psr\SimpleCache\InvalidArgumentException;
class Unleash
{
const UNLEASH_CLIENT_CACHE_PREFIX = '_unlsh';
/** @var string */
const UNLEASH_CLIENT_CACHE_TIMEOUT_KEY = 'cache_timeout';
......@@ -134,6 +136,6 @@ class Unleash
*/
protected function buildCacheKey(string $key): string
{
return implode('_', [ '_unl', $this->client->getId(), $key ]);
return static::UNLEASH_CLIENT_CACHE_PREFIX . $this->client->getId() . '-' . $key;
}
}
Please register or to comment