Statistics
| Branch: | Revision:

root / trunk / hammock / src / net35 / Hammock / Caching / CacheFactory.cs @ 0eea575a

History | View | Annotate | Download (596 Bytes)

1
using System;
2

    
3
namespace Hammock.Caching
4
{
5
#if !SILVERLIGHT
6
    [Serializable]
7
#endif
8
    public static class CacheFactory
9
    {
10
#if !Smartphone && !Silverlight && !ClientProfiles && !MonoTouch && !NETCF
11
        public static IDependencyCache AspNetCache
12
        {
13
            get { return new AspNetCache(); }
14
        }
15
#endif
16

    
17
        public static ICache InMemoryCache
18
        {
19
            get { return new SimpleCache(); }
20
        }
21

    
22
#if SILVERLIGHT
23
        public static ICache IsolatedStorageCache
24
        {
25
            get { throw new NotImplementedException(); }
26
        }
27
#endif
28
    }
29
}