Skip to content

Commit

Permalink
Add Filename since we are on v5
Browse files Browse the repository at this point in the history
Fixes #107
  • Loading branch information
jamesmontemagno authored Mar 13, 2022
1 parent b562ede commit 757487a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MonkeyCache.LiteDB/Barrel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ public static IBarrel Create(string cacheDirectory, bool cache = false)

if (!string.IsNullOrWhiteSpace(EncryptionKey))
path = $"Filename={path}; Password={EncryptionKey}";
else
path = $"Filename={path}";
#endif
if(Upgrade)
path += "; Upgrade=true";
Expand Down

0 comments on commit 757487a

Please sign in to comment.