Welcome Guest, Not a member yet? Register   Sign In
Add new functions to Redis Handler
#1

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 getKeysstring $keys "*" )
    {
        return 
$this->redis->keys($keys);
    }

    
//--------------------------------------------------------------------
    
    
public function delWildcardstring $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 ?
Reply


Messages In This Thread
Add new functions to Redis Handler - by eelisland - 02-23-2021, 10:03 AM
RE: Add new functions to Redis Handler - by tgix - 02-23-2021, 10:45 PM
RE: Add new functions to Redis Handler - by tgix - 02-24-2021, 10:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB