PCRE cache: fix issues identified during code review

* Fix docs
* Remove unused headers
* Use enum class
* Use switch instead of "else if" chain
* Make ThreadSafeLRUCache::size() be const
* Use "using" for aliases
* Minor style tweaks