Merge pull request #496 from nicolas-raoul/unit-test-for-issue2907
[mono.git] / mcs / tools / monkeydoc / Monkeydoc / caches / NullCache.cs
1 using System;
2 using System.IO;
3
4 namespace MonkeyDoc.Caches
5 {
6         // This is basically a no-cache implementation
7         public class NullCache : IDocCache
8         {
9                 public bool IsCached (string id)
10                 {
11                         return false;
12                 }
13
14                 public bool CanCache (DocEntity entity)
15                 {
16                         return false;
17                 }
18
19                 public Stream GetCachedStream (string id)
20                 {
21                         return null;
22                 }
23
24                 public string GetCachedString (string id)
25                 {
26                         return null;
27                 }
28
29                 public void CacheText (string id, string content)
30                 {
31
32                 }
33
34                 public void CacheText (string id, Stream stream)
35                 {
36
37                 }
38
39                 public void CacheBlob (string id, byte[] data)
40                 {
41
42                 }
43
44                 public void CacheBlob (string id, Stream stream)
45                 {
46
47                 }
48
49                 public void Dispose ()
50                 {
51                         
52                 }
53         }
54 }