- 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/DirectAccess.cs
r199 r325 1 1 using System; 2 using System.Collections.Generic;3 2 using System.IO; 4 3 5 namespace AllocsFixes.FileCache 6 { 4 namespace AllocsFixes.FileCache { 7 5 // Not caching at all, simply reading from disk on each request 8 public class DirectAccess : AbstractCache 9 { 10 11 public DirectAccess () 12 { 13 } 14 15 public override byte[] GetFileContent (string filename) 16 { 6 public class DirectAccess : AbstractCache { 7 public override byte[] GetFileContent (string filename) { 17 8 try { 18 9 if (!File.Exists (filename)) { … … 24 15 Log.Out ("Error in DirectAccess.GetFileContent: " + e); 25 16 } 17 26 18 return null; 27 19 } 28 29 20 } 30 21 } 31
Note:
See TracChangeset
for help on using the changeset viewer.