Merge pull request #498 from Unroll-Me/master
[mono.git] / mcs / tools / monkeydoc / Monkeydoc / cache.cs
1 using System;
2 using System.IO;
3
4 namespace MonkeyDoc
5 {
6         public enum DocEntity
7         {
8                 Text,
9                 Blob
10         }
11
12         public interface IDocCache : IDisposable
13         {
14                 bool IsCached (string id);
15                 bool CanCache (DocEntity entity);
16
17                 Stream GetCachedStream (string id);
18                 string GetCachedString (string id);
19
20                 void CacheText (string id, string content);
21                 void CacheText (string id, Stream stream);
22
23                 void CacheBlob (string id, byte[] data);
24                 void CacheBlob (string id, Stream stream);
25         }
26 }