02-23-2021, 10:03 AM
What is the proper way to add thoses function to the Redis Handler whithout writing it in the System\Cache\Handlers\RedisHandler.php file ?
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 ?
PHP Code:
public function getKeys( string $keys = "*" )
{
return $this->redis->keys($keys);
}
//--------------------------------------------------------------------
public function delWildcard( string $keys )
{
if (!$keys || $keys === "*") return false;
$this->redis->del(
$this->redis->keys($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 ?