PHP 8.2.31
Preview: memo.php Size: 466 B
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/elementor/modules/atomic-widgets/utils/memo.php

<?php

namespace Elementor\Modules\AtomicWidgets\Utils;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class Memo {
	private array $cache = [];

	public function memoize( string $key, callable $callback ) {
		return function() use ( $key, $callback ) {
			if ( array_key_exists( $key, $this->cache ) ) {
				return $this->cache[ $key ];
			}

			$this->cache[ $key ] = call_user_func( $callback );
			return $this->cache[ $key ];
		};
	}
}

Directory Contents

Dirs: 1 × Files: 2

Name Size Perms Modified Actions
image DIR
- drwxr-xr-x 2026-06-10 02:40:26
Edit Download
466 B lrw-r--r-- 2025-12-22 17:25:58
Edit Download
1.52 KB lrw-r--r-- 2026-05-20 16:19:28
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).