views:

63

answers:

2

Does anyone know any cache providers for .NET that support streaming data directly in/out by key, rather than serializing/deserializing objects?

I was rather hoping AppFabric (Velocity) would, but it only appears to deal with objects like the built-in ASP.NET cache.

A: 
James
Our service already uses WCF streaming transport of blobs to clients. We just need to put some cache provider behind it, that also supports streams.
Richard Dingwall
A: 

NCache Enterprise is the only .NET cache provider I can find that supports streaming:

// Insert
using (var cacheStream = cache.GetCacheStream("mykey", StreamMode.Write))
    cacheStream.Write(...);

// Retrieve
using (var cacheStream = cache.GetCacheStream("mykey", StreamMode.Read))
    cacheStream.Read(...);
Richard Dingwall