-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored RequestCacheableDictionary into CacheableDictionary and in…
…herited IRequestCache from ICache so the cache implementation can be swapped with other types of caches, such as a session cache.
- Loading branch information
1 parent
1ffb80a
commit 7bc541e
Showing
7 changed files
with
52 additions
and
39 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
src/MvcSiteMapProvider/MvcSiteMapProvider/Caching/ICache.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System; | ||
|
||
namespace MvcSiteMapProvider.Caching | ||
{ | ||
/// <summary> | ||
/// Contract for a class to provide type-safe access to a cache dictionary. | ||
/// </summary> | ||
public interface ICache | ||
{ | ||
T GetValue<T>(string key); | ||
void SetValue<T>(string key, T value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters