# learnpress/4.1.7.1/inc/cache/class-lp-course-cache.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.1.7.1. 33 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.1.7.1/code/inc/cache/class-lp-course-cache.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.1.7.1/raw/inc/cache/class-lp-course-cache.php
- Modified: 2022-09-15T05:24:36+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/learnpress/4.1.7.1/code/inc/cache/class-lp-course-cache.php#L10-L20`.

```php
<?php

/**
 * Class LP_Course_Cache
 *
 * @author tungnx
 * @since 4.0.9
 * @version 1.0.0
 */
defined( 'ABSPATH' ) || exit();

class LP_Course_Cache extends LP_Cache {
	protected static $instance;
	protected $key_group_child = 'course';

	/**
	 * Get instance
	 *
	 * @return self
	 */
	public static function instance(): self {
		if ( is_null( self::$instance ) ) {
			self::$instance = new self();
		}

		return self::$instance;
	}

	protected function __construct() {
		parent::__construct();
	}
}

```
