- Timestamp:
- Sep 4, 2018, 1:00:48 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/FileCache/SimpleCache.cs
r199 r325 3 3 using System.IO; 4 4 5 namespace AllocsFixes.FileCache 6 { 5 namespace AllocsFixes.FileCache { 7 6 // Caching all files, useful for completely static folders only 8 public class SimpleCache : AbstractCache 9 {7 public class SimpleCache : AbstractCache { 8 private readonly Dictionary<string, byte[]> fileCache = new Dictionary<string, byte[]> (); 10 9 11 private Dictionary<string, byte[]> fileCache = new Dictionary<string, byte[]> (); 12 13 public SimpleCache () 14 { 15 } 16 17 public override byte[] GetFileContent (string filename) 18 { 10 public override byte[] GetFileContent (string filename) { 19 11 try { 20 12 lock (fileCache) { … … 32 24 Log.Out ("Error in SimpleCache.GetFileContent: " + e); 33 25 } 26 34 27 return null; 35 28 } 36 37 29 } 38 30 } 39
Note:
See TracChangeset
for help on using the changeset viewer.