File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/phpFastCache/Drivers/Couchbase Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1919
2020$ InstanceCache = CacheManager::getInstance ('couchbase ' , [
2121 'host ' => 'your-couchbase-host ' ,
22- 'port ' => ' 11211 ' ,
22+ 'port ' => 8091 ,
2323 'username ' => 'your-couchbase-username ' ,
2424 'password ' => 'your-couchbase-password ' ,
25- 'timeout ' => '1 ' ,
2625 'buckets ' => [
2726 [
2827 'bucket ' => 'default ' , // The bucket name, generally "default" by default
Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ protected function driverConnect()
137137
138138
139139 $ host = isset ($ this ->config [ 'host ' ]) ? $ this ->config [ 'host ' ] : '127.0.0.1 ' ;
140+ $ port = isset ($ this ->config [ 'port ' ]) ? $ this ->config [ 'port ' ] : 8091 ;
140141 $ password = isset ($ this ->config [ 'password ' ]) ? $ this ->config [ 'password ' ] : '' ;
141142 $ username = isset ($ this ->config [ 'username ' ]) ? $ this ->config [ 'username ' ] : '' ;
142143 $ buckets = isset ($ this ->config [ 'buckets ' ]) ? $ this ->config [ 'buckets ' ] : [
@@ -146,7 +147,7 @@ protected function driverConnect()
146147 ],
147148 ];
148149
149- $ this ->instance = new CouchbaseClient ("couchbase:// {$ host }" , $ username , $ password );
150+ $ this ->instance = new CouchbaseClient ("couchbase:// {$ host }: { $ port } " , $ username , $ password );
150151
151152 foreach ($ buckets as $ bucket ) {
152153 $ this ->bucketCurrent = $ this ->bucketCurrent ?: $ bucket [ 'bucket ' ];
You can’t perform that action at this time.
0 commit comments