Minor changes to folly/experimental/io
[folly.git] / folly / experimental / io / IOBufQueue.h
index 283cd3ac5d7ea360b4f704d73d98e7942ae3e99c..3cb60b4998b4f89b02aa5ad0948e1064c66ab7f1 100644 (file)
@@ -36,6 +36,16 @@ class IOBufQueue {
     bool cacheChainLength;
   };
 
+  /**
+   * Commonly used Options, currently the only possible value other than
+   * the default.
+   */
+  static Options cacheChainLength() {
+    Options options;
+    options.cacheChainLength = true;
+    return options;
+  }
+
   explicit IOBufQueue(const Options& options = Options());
 
   /**