Skip to content

Commit 1287abf

Browse files
committed
Added Help to Couchdb and Predis drivers
1 parent ff865aa commit 1287abf

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

src/phpFastCache/Drivers/Couchdb/Driver.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,19 @@ protected function createDatabase()
230230
*
231231
*******************/
232232

233+
/**
234+
* @return string
235+
*/
236+
public function getHelp()
237+
{
238+
return <<<HELP
239+
<p>
240+
To install the Couchdb HTTP client library via Composer:
241+
<code>composer require "doctrine/couchdb" "@dev"</code>
242+
</p>
243+
HELP;
244+
}
245+
233246
/**
234247
* @return DriverStatistic
235248
*/

src/phpFastCache/Drivers/Predis/Driver.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,20 @@ protected function driverConnect()
141141
*
142142
*******************/
143143

144+
145+
/**
146+
* @return string
147+
*/
148+
public function getHelp()
149+
{
150+
return <<<HELP
151+
<p>
152+
To install the Predis library via Composer:
153+
<code>composer require "predis/predis" "~1.1.0"</code>
154+
</p>
155+
HELP;
156+
}
157+
144158
/**
145159
* @return DriverStatistic
146160
*/

0 commit comments

Comments
 (0)