Angejia\Pea\RedisMeta::flushAll PHP Method

flushAll() public method

public flushAll ( $db, $table )
    public function flushAll($db, $table)
    {
        $key = implode(':', [$this->prefix, self::KEY_SCHEMA_VERSION, $db, $table]);
        $key = md5($key);
        $this->redis->incr($key);
    }

Usage Example

Esempio n. 1
0
 public function testFlushAll()
 {
     $redis = M::mock(Redis::class);
     $redis->shouldReceive('incr')->with('2d23e940e190c4fefe3955fe8cf5c8a8');
     $meta = new RedisMeta($redis);
     $meta->flushAll('angejia', 'user');
 }