Skip to content

Commit

Permalink
Renamed the RuntimeCacheProvider to RuntimeCacheService; also provide…
Browse files Browse the repository at this point in the history
…d a default constructor
  • Loading branch information
Aaronontheweb committed Sep 14, 2012
1 parent 0c6b26a commit 5747d6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MVC.Utilities.Tests/Caching/RuntimeCacheServiceTests.cs
Expand Up @@ -22,7 +22,7 @@ public class RuntimeCacheProviderTests
public void Setup()
{
//Create a new in-memory cache with a default sliding expiration of 20 minutes
_cacheService = new RuntimeCacheProvider(MemoryCache.Default, new TimeSpan(0, 0, 20));
_cacheService = new RuntimeCacheService(MemoryCache.Default, new TimeSpan(0, 0, 20));

//Create a dictionary we can use to clean-up items from the cache.
_cachedObjects = new List<string>();
Expand Down
6 changes: 3 additions & 3 deletions MVC.Utilities/Caching/RuntimeCacheService.cs
Expand Up @@ -4,15 +4,15 @@

namespace MVC.Utilities.Caching
{
public class RuntimeCacheProvider : CacheServiceBase
public class RuntimeCacheService : CacheServiceBase
{
private readonly ObjectCache _cache;

public RuntimeCacheProvider() : this(MemoryCache.Default, new TimeSpan(0, 20, 0))
public RuntimeCacheService() : this(MemoryCache.Default, new TimeSpan(0, 20, 0))
{
}

public RuntimeCacheProvider(ObjectCache cache, TimeSpan defaultSlidingDuration)
public RuntimeCacheService(ObjectCache cache, TimeSpan defaultSlidingDuration)
: base(defaultSlidingDuration)
{
//Point the ObjectCache to a derived class which implements the appropriate policy
Expand Down

0 comments on commit 5747d6a

Please sign in to comment.