What is the ASP.NET equivalent to memcached in PHP?
Asked Answered
P

3

5

Is there an equivalent in ASP.NET to memcached usage in PHP? Is there even a way I could use memcached from the VB code behind, or something like it?

Protolanguage answered 28/4, 2010 at 20:31 Comment(0)
G
3

Memcached works well with .net too, but equivalent would be Velocity

Gigi answered 28/4, 2010 at 20:34 Comment(0)
H
4

That would be Microsoft Velocity which has now been rolled into Windows Server AppFabric Caching It's not supported officially yet, but it's there. It's essentially (from what I can figure the same concept as Memcached. It's written as a native Windows Serivce, and you can use it as a state server for session. As an easy example of how it plugs nicely into Asp.Net

Also check this post for discussions on getting Memcached binding from C#.

aside? You might also want to look at the all new and shiny NoSql stuff, depending on what you're trying to accomplish obviously. I'm currently playing with RavenDb but I'm not talking about running my enterprise on it... yet

Hoar answered 28/4, 2010 at 20:33 Comment(1)
Instead of using Memcache, could I use Microsoft AppFabric Caching for communication between PHP and ASP.NET? Will Microsoft AppFabric Caching work with PHP? If yes, how well does Microsoft AppFabric Caching work with PHP?Rheo
L
3

memcached is a daemon, totally independant from PHP -- must be writtent in C/C++

It can be used from any language -- only condition is you'll need a library to communicate with it (and there are some in lots of languages)

For libraries, you can take a look at this page of memcached's wiki : Clients.


Yes, it's often associated with PHP, but PHP is absolutly not a necessity -- I would say that association is often made for at least those reasons :

  • Same technical background, at least at first : Linux
  • Same philosophy : open source, free
  • Easy inter-connection (existence of libraries that are well-known)
  • Fits well with one of the most important idea of PHP : it's a glue language, that's great for inter-connecting distinct components, that are all great at what they do, and build an application using those.
Longspur answered 28/4, 2010 at 20:33 Comment(0)
G
3

Memcached works well with .net too, but equivalent would be Velocity

Gigi answered 28/4, 2010 at 20:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.