Angejia\Pea\RedisMeta::flushAll PHP 메소드

flushAll() 공개 메소드

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

예제 #1
0
파일: MetaTest.php 프로젝트: angejia/pea
 public function testFlushAll()
 {
     $redis = M::mock(Redis::class);
     $redis->shouldReceive('incr')->with('2d23e940e190c4fefe3955fe8cf5c8a8');
     $meta = new RedisMeta($redis);
     $meta->flushAll('angejia', 'user');
 }