Memcached and Redis for PHP Script (not WordPress)

Hello OLS community!

Does anyone have some information and/or links about how to use/enable/configure/optimize Memcached and Redis on OLS/CyberPanel/AlmaLinux8 for a PHP website (PHP script) and not for WordPress? All the information I could find online is about using it (mainly LiteSpeed Enterprise) with WordPress and the LSCache extension.

The Setup is as follow:

Cloud VPS with 12 vCores, 24GB RAM, 640GB NVMe, 1Gbit Network bandwidth, AlmaLinux 8, latest OSL and CyberPanel, Memcached and Redis installed, Percona MySQL to follow, custom PHP script (not WordPress or other CMS etc.), 1 website hosted with the mentioned PHP script.

Thanks a lot upfront!