Add new functions to Redis Handler |
What is the proper way to add thoses function to the Redis Handler whithout writing it in the System\Cache\Handlers\RedisHandler.php file ?
PHP Code: public function getKeys( string $keys = "*" ) I read this from the Documentation here https://codeigniter4.github.io/userguide...asses.html but i have to admit that i don't fully understand how it work. Can anyone describe me how i can do please ? (02-23-2021, 10:03 AM)eelisland Wrote: What is the proper way to add thoses function to the Redis Handler whithout writing it in the System\Cache\Handlers\RedisHandler.php file ? Rule #1: don't mess with framework files! I had to work around an issue in Redis handler by creating my own RedisHandler in app/Libraries: PHP Code: <?php In app/Config/Cache.php I added this to the array of validHandlers: PHP Code: public $validHandlers = [ Hope this helps! |
Welcome Guest, Not a member yet? Register Sign In |