Add CacheLayer singleton class

This commit is contained in:
netkas 2024-09-13 13:47:35 -04:00
parent d1c62486c8
commit 4bcec33f84

View file

@ -0,0 +1,18 @@
<?php
namespace Socialbox\Classes;
class CacheLayer
{
private static CacheLayer $instance;
public static function getInstance(): CacheLayer
{
if (!isset(self::$instance))
{
self::$instance = new CacheLayer();
}
return self::$instance;
}
}