If you are writing your own software then here is a very extensive guide to make it compatible with LiteSpeed cache: https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:developer_guide
Does this support litespeed only? or openlitespeed is also supported?
This also works with OpenLiteSpeed, as OpenLiteSpeed have the same LSCache module built in. Just make sure you won’t use ESI feature in your code with OpenLiteSpeed as it is only supported with LSWS Enterprise.
Everything else is the same, WordPress and all LSCache plugins work on the same principles.
It is recommended to read the whole guide, but this one will be of your interest:
Make sure to properly tag your cached pages, so you can invalidate them later. if you run into any troubles, feel free to ask.