Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A simple, flexible cache façade for .NET. This is a WIP and is not ready for use.
C# Shell PowerShell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
build
src
.gitignore
gpl.txt
readme.md

readme.md

NCacheFacade

A simple, flexible cache facade for .NET.

Usage:

    var cache = ResolveType.Of<ICache>();   
    //optional storage style indicates compression and/or encryption
    var key = new Key(5.Minutes(), StorageStyle.Whatever, ExpirationType.Whatever, "unique-name");
    MyType cachedObject;

    if (cache[key.ToString()] == null)
    {
        cachedObject = new MyObject();
        bool success = cache.Add(key, cachedObject);
    }
    else
    {
        cachedObject = cache.Get<MyObject>(key);
    }

    //...make use of the object

License & Copyright

This software is released under the GNU Lesser GPL. It is Copyright 2012, Ben Aston. I may be contacted at ben@bj.ma.

Something went wrong with that request. Please try again.