db.collection.isCapped()

  • db.collection. isCapped ( )
Returns:如果集合是capped collection,则返回true,否则返回false