예제 #1
0
 /**
  * Flush all existing items at the server
  *
  * CacheRedis::truncate() immediately invalidates all existing items.
  * If using multiple databases, items in other databases are not affected.
  *
  * @return bool Returns true on success or false on failure.
  */
 function truncate()
 {
     try {
         return $this->redis->flushDB();
     } catch (RedisException $e) {
         return $this->status = false;
     }
 }