Skip to content

Commit

Permalink
#1807 reformat files && add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Nov 9, 2024
1 parent 1279e82 commit d004308
Show file tree
Hide file tree
Showing 3 changed files with 231 additions and 242 deletions.
5 changes: 2 additions & 3 deletions starsky/starsky.foundation.readmeta/Services/ReadMeta.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public void UpdateReadMetaCache(IEnumerable<FileIndexItem> objectExifToolModel)
{
foreach ( var item in objectExifToolModel )
{
UpdateReadMetaCacheSingle(item.FilePath!, item);
UpdateReadMetaCache(item.FilePath!, item);
}
}

Expand Down Expand Up @@ -153,14 +153,13 @@ public void UpdateReadMetaCache(IEnumerable<FileIndexItem> objectExifToolModel)
return true;
}


/// <summary>
/// Update Cache only for ReadMeta!
/// To 15 minutes
/// </summary>
/// <param name="fullFilePath">can also be a subPath</param>
/// <param name="objectExifToolModel">the item</param>
private void UpdateReadMetaCacheSingle(string fullFilePath, FileIndexItem objectExifToolModel)
internal void UpdateReadMetaCache(string fullFilePath, FileIndexItem objectExifToolModel)
{
if ( _cache == null || _appSettings?.AddMemoryCache == false )
{
Expand Down
Loading

0 comments on commit d004308

Please sign in to comment.