Does anyone know of anyone working on a LINQ-to-Memcached provider?

I don't if this is what you want, you can check in this website In there you can query Memcached as well as query linq to object public static IEnumerable GetAllUsers() { // Retrieve from cache if it exists, otherwise run the query return (from you in ctx. Users select u). CachedQuery("allusers"); } Is this what you want?

Here is the source code public static IEnumerable CachedQuery (this IQueryable query, string key) where T : class { if (cache. KeyExists(key)) { return (IEnumerable)cache. Get(key); } else { IEnumerable items = query.ToList(); cache.

Set(key, items); return items; } }.

I don't if this is what you want, you can check in this website. In there you can query Memcached as well as query linq to object. Public static IEnumerable GetAllUsers() { // Retrieve from cache if it exists, otherwise run the query return (from you in ctx.

Users select u). CachedQuery("allusers"); } Is this what you want? Here is the source code public static IEnumerable CachedQuery (this IQueryable query, string key) where T : class { if (cache.

KeyExists(key)) { return (IEnumerable)cache. Get(key); } else { IEnumerable items = query.ToList(); cache. Set(key, items); return items; } }.

If you don't mind throwing N you can use LINQ to Nbernate to query entities which can be set to use memcached as their cache.

Ouch! That's nasty – Orion Edwards Oct 27 '08 at 21:56 It depends on if you want to use Nbernate already or not ;) – SoloBold Oct 27 '08 at 21:58 I do want to, but tragically it's not currently an option until the shortcomings of Linq2Sql are experienced "in real life". – Peter Mounce Oct 28 '08 at 19:48.

Because I didn't know what memcached is I googled around and found this link: latebound.blogspot.com/2008/10/using-mem... Which has a section near the bottom on using LINQ queries over memcached.

I encounter some problem with linq for memcached also. But you should check out the serialization of your linq DBML whether it's Unidirectional or not. You might have luck for this solution, worth to try out.

For me, I sitll having problem with linq, but other object that have Serilizable attribute works fine.

I've really no idea how that might work in practise; I don't know very much about the internals of either distributed caches or LINQ providers. I'm maybe envisaging something like the cache LINQ provider generating cache-keys based on the query automatically (where query could be Expression> or some kind of Specification pattern implementation), and basically can be plumped down inbetween my app and my DB. Does that sound useful?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions