Skip to content

Commit 00661b9

Browse files
committed
docs: add comments
1 parent 6cedbe9 commit 00661b9

5 files changed

Lines changed: 14 additions & 0 deletions

File tree

system/Cache/Handlers/FileHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ class FileHandler extends BaseHandler
4444
protected $mode;
4545

4646
/**
47+
* Note: Use `CacheFactory::getHandler()` to instantiate.
48+
*
4749
* @throws CacheException
4850
*/
4951
public function __construct(Cache $config)

system/Cache/Handlers/MemcachedHandler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ class MemcachedHandler extends BaseHandler
4242
'raw' => false,
4343
];
4444

45+
/**
46+
* Note: Use `CacheFactory::getHandler()` to instantiate.
47+
*/
4548
public function __construct(Cache $config)
4649
{
4750
$this->prefix = $config->prefix;

system/Cache/Handlers/PredisHandler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ class PredisHandler extends BaseHandler
4343
*/
4444
protected $redis;
4545

46+
/**
47+
* Note: Use `CacheFactory::getHandler()` to instantiate.
48+
*/
4649
public function __construct(Cache $config)
4750
{
4851
$this->prefix = $config->prefix;

system/Cache/Handlers/RedisHandler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ class RedisHandler extends BaseHandler
4242
*/
4343
protected $redis;
4444

45+
/**
46+
* Note: Use `CacheFactory::getHandler()` to instantiate.
47+
*/
4548
public function __construct(Cache $config)
4649
{
4750
$this->prefix = $config->prefix;

system/Cache/Handlers/WincacheHandler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
*/
2323
class WincacheHandler extends BaseHandler
2424
{
25+
/**
26+
* Note: Use `CacheFactory::getHandler()` to instantiate.
27+
*/
2528
public function __construct(Cache $config)
2629
{
2730
$this->prefix = $config->prefix;

0 commit comments

Comments
 (0)