Пример #1
0
 /**
  * Get a MongoDB collection.
  *
  * @param string $name
  * @return \Jenssegers\Mongodb\MongoDB 
  * @static 
  */
 public static function getCollection($name)
 {
     return \Jenssegers\Mongodb\Connection::getCollection($name);
 }
 /**
  * Remove all items from the cache.
  *
  * @return void
  */
 public function flush()
 {
     $mongo_collection = $this->connection->getCollection($this->collection_name);
     $mongo_collection->drop();
 }