diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-09-21 20:34:58 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-09-21 20:34:58 -0500 |
| commit | 9bbedd6f504e33d908fe52815e9b58bcebf7baa4 (patch) | |
| tree | ef576c4f0104eef2c31f079e2e717061c44d3ef4 /src/slskd/Shares/ISharedFileCache.cs | |
| parent | 9bb986d218c1e56a988e25dc92b0778471788f50 (diff) | |
| download | slskd-9bbedd6f504e33d908fe52815e9b58bcebf7baa4.tar.gz | |
add Create(). validate tables and create if needed when filling
Diffstat (limited to 'src/slskd/Shares/ISharedFileCache.cs')
| -rw-r--r-- | src/slskd/Shares/ISharedFileCache.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/slskd/Shares/ISharedFileCache.cs b/src/slskd/Shares/ISharedFileCache.cs index 52c7783c..61312a37 100644 --- a/src/slskd/Shares/ISharedFileCache.cs +++ b/src/slskd/Shares/ISharedFileCache.cs @@ -40,6 +40,12 @@ namespace slskd.Shares IEnumerable<Directory> Browse(); /// <summary> + /// (Re)Creates the cache. + /// </summary> + /// <param name="discardExisting">A value indicating whether an existing cache should be discarded prior to creation.</param> + void Create(bool discardExisting = false); + + /// <summary> /// Scans the configured shares and fills the cache. /// </summary> /// <remarks>Initiates the scan, then yields execution back to the caller; does not wait for the operation to complete.</remarks> |
