Skip to content

Instantly share code, notes, and snippets.

View MetaRecursion's full-sized avatar

Matt Mitchell MetaRecursion

View GitHub Profile
@kevinblake
kevinblake / ICacheService.cs
Created December 7, 2012 10:03
In Memory Cache wrapper class
using System;
using System.Web.Caching;
namespace Puzzlebox.Caching
{
interface ICacheService
{
T Get<T>(string cacheId, Func<T> getItemCallback) where T : class;
T Get<T>(string cacheId, CacheDependency cacheDependency, DateTime absoluteExpiration, TimeSpan slidingExpiration, Func<T> getItemCallback) where T : class;
}