# learnpress/4.4.4/inc/cache/class-lp-session-cache.php

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

- Page: https://pluginprobe.com/plugins/learnpress/4.4.4/code/inc/cache/class-lp-session-cache.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.4.4/raw/inc/cache/class-lp-session-cache.php
- Modified: 2026-08-03T03:26:42+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.4.4/code/inc/cache/class-lp-session-cache.php#L10-L20`.

```php
<?php

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

class LP_Session_Cache extends LP_Cache {
	protected static $instance;
	protected $key_group_child = 'session';

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

		return self::$instance;
	}

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

```
