Caches a file in memory using the asp.net Cache object, while exposing methods for adding subkeys that invalidate along with the file if the source file is changed.
More...
|
object | GetSubkey (string subkey) |
| Remember, the object returned here may be accessed by multiple threads at the same time! No modifications! More...
|
|
void | SetSubkey (string subkey, object item) |
|
Stream | GetStream () |
| Wraps the byte array in a read-only stream More...
|
|
Caches a file in memory using the asp.net Cache object, while exposing methods for adding subkeys that invalidate along with the file if the source file is changed.
Definition at line 18 of file MemCachedFile.cs.
Stream ImageResizer.Plugins.PsdComposer.MemCachedFile.GetStream |
( |
| ) |
|
|
inline |
Wraps the byte array in a read-only stream
- Returns
Definition at line 52 of file MemCachedFile.cs.
54 return new MemoryStream(data,
false);
object ImageResizer.Plugins.PsdComposer.MemCachedFile.GetSubkey |
( |
string |
subkey | ) |
|
|
inline |
Remember, the object returned here may be accessed by multiple threads at the same time! No modifications!
- Parameters
-
- Returns
Definition at line 31 of file MemCachedFile.cs.
35 if (!subkeys.ContainsKey(subkey))
return null;
36 return subkeys[subkey];
The documentation for this class was generated from the following file: