Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
U
unleash-client-php
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Merge Requests
2
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
unleash-client-php
Commits
bc1ccc87
Commit
bc1ccc87
authored
27 minutes ago
by
Emiliano Balbuena
Browse files
Options
Download
(chore): Change cache prefix
parent
063ce67c
goal/clean-up-unleash-client
1 merge request
!2
WIP: Clean up and strategies
Pipeline
#105672936
passed with stage
in 1 minute and 9 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
src/Client.php
View file @
bc1ccc87
...
...
@@ -161,6 +161,6 @@ class Client
$this
->
config
->
getApplicationName
(),
$this
->
config
->
getInstanceId
(),
$this
->
config
->
getVersion
()
])),
4
,
16
);
])),
4
,
9
);
}
}
This diff is collapsed.
src/Unleash.php
View file @
bc1ccc87
...
...
@@ -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
;
}
}
This diff is collapsed.
Please
register
or
sign in
to comment