From fb10f5f5b943bc1e54afe65712848a3b0cecc813 Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Sat, 12 Mar 2022 20:23:47 -0800 Subject: [PATCH] Update Barrel.cs --- src/MonkeyCache.FileStore/Barrel.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/MonkeyCache.FileStore/Barrel.cs b/src/MonkeyCache.FileStore/Barrel.cs index 881f1ad..db561f4 100644 --- a/src/MonkeyCache.FileStore/Barrel.cs +++ b/src/MonkeyCache.FileStore/Barrel.cs @@ -60,8 +60,13 @@ public class Barrel : IBarrel /// public static IBarrel Current => (instance ?? (instance = new Barrel())); - public static IBarrel Create(string cacheDirectory) => - new Barrel(cacheDirectory); + /// + /// FileStore Barrel + /// + /// Optionally specify directory where cache will live + /// Optionally specify hash algorithm + public static IBarrel Create(string cacheDirectory, HashAlgorithm hash = null) => + new Barrel(cacheDirectory, hash); /// /// Adds an entry to the barrel