Skip to content

Commit

Permalink
Update Barrel.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontemagno authored Mar 13, 2022
1 parent a0bd9cd commit fb10f5f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/MonkeyCache.FileStore/Barrel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,13 @@ public class Barrel : IBarrel
/// </summary>
public static IBarrel Current => (instance ?? (instance = new Barrel()));

public static IBarrel Create(string cacheDirectory) =>
new Barrel(cacheDirectory);
/// <summary>
/// FileStore Barrel
/// </summary>
/// <param name="cacheDirectory">Optionally specify directory where cache will live</param>
/// <param name="hash">Optionally specify hash algorithm</param>
public static IBarrel Create(string cacheDirectory, HashAlgorithm hash = null) =>
new Barrel(cacheDirectory, hash);

/// <summary>
/// Adds an entry to the barrel
Expand Down

0 comments on commit fb10f5f

Please sign in to comment.