Ignore:
Timestamp:
Jan 27, 2023, 7:28:00 PM (22 months ago)
Author:
alloc
Message:
  • Major refactoring
  • Using Utf8Json for (de)serialization
  • Moving APIs to REST
  • Removing dependencies from WebServer and MapRenderer to ServerFixes
Location:
binary-improvements2/WebServer/src/FileCache
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • binary-improvements2/WebServer/src/FileCache/AbstractCache.cs

    r392 r402  
    11using System.Collections.Generic;
    22
    3 namespace AllocsFixes.FileCache {
     3namespace Webserver.FileCache {
    44        public abstract class AbstractCache {
    55                public abstract byte[] GetFileContent (string _filename);
    6                 public abstract (int, int) Invalidate ();
     6                public abstract (int filesDropped, int bytesDropped) Invalidate ();
    77
    88                protected AbstractCache () {
     
    1616                       
    1717                        foreach (AbstractCache cache in caches) {
    18                                 (int, int) returned = cache.Invalidate ();
    19                                 filesDropped += returned.Item1;
    20                                 bytesDropped += returned.Item2;
     18                                (int files, int bytes) = cache.Invalidate ();
     19                                filesDropped += files;
     20                                bytesDropped += bytes;
    2121                        }
    2222
Note: See TracChangeset for help on using the changeset viewer.