Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
memcache
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
memcache
Merge requests
!32
Respect empty array servers && bins settings
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Respect empty array servers && bins settings
issue/memcache-3460944:3460944-local-without-memcache
into
8.x-2.x
Overview
0
Commits
1
Pipelines
3
Changes
1
Merged
spokje
requested to merge
issue/memcache-3460944:3460944-local-without-memcache
into
8.x-2.x
11 months ago
Overview
0
Commits
1
Pipelines
3
Changes
1
Expand
Closes
#3460944
0
0
Merge request reports
Compare
8.x-2.x
version 1
21ec26bf
11 months ago
8.x-2.x (base)
and
latest version
latest version
05ef6251
1 commit,
11 months ago
version 1
21ec26bf
1 commit,
11 months ago
1 file
+
7
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/Driver/MemcacheDriverFactory.php
+
7
−
0
Options
@@ -168,6 +168,13 @@ class MemcacheDriverFactory {
elseif
(
class_exists
(
'Memcache'
))
{
$extension
=
\Memcache
::
class
;
}
// If both the "servers" and "bins" settings for a specified extension are
// an empty array, make it possible to have this module enabled and have
// neither Memcache nor Memcached installed on this environment.
elseif
(
$this
->
settings
->
get
(
'servers'
,
NULL
)
===
[]
&&
$this
->
settings
->
get
(
'bins'
,
NULL
)
===
[])
{
$extension
=
'disabled'
;
}
else
{
throw
new
MemcacheException
(
'No Memcache extension found'
);
}
Loading