Cachearium\Backend\CacheAPC::singleton PHP Method

singleton() public static method

Cache constructor (this is a singleton).
public static singleton ( ) : Cache
return Cache The cache singleton.
    public static function singleton()
    {
        static $instances;
        if (!isset($instances)) {
            $instances = new CacheAPC();
        }
        return $instances;
    }