| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Class LP_Course_Cache |
| 5 |
* |
| 6 |
* @author tungnx |
| 7 |
* @since 4.0.9 |
| 8 |
* @version 1.0.0 |
| 9 |
*/ |
| 10 |
defined( 'ABSPATH' ) || exit(); |
| 11 |
|
| 12 |
class LP_Course_Cache extends LP_Cache { |
| 13 |
protected static $instance; |
| 14 |
protected $key_group_child = 'course'; |
| 15 |
|
| 16 |
/** |
| 17 |
* Get instance |
| 18 |
* |
| 19 |
* @return self |
| 20 |
*/ |
| 21 |
public static function instance(): self { |
| 22 |
if ( is_null( self::$instance ) ) { |
| 23 |
self::$instance = new self(); |
| 24 |
} |
| 25 |
|
| 26 |
return self::$instance; |
| 27 |
} |
| 28 |
|
| 29 |
protected function __construct() { |
| 30 |
parent::__construct(); |
| 31 |
} |
| 32 |
} |
| 33 |
|