简体   繁体   中英

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

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?

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

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.

Memcached也适用于.net,但相当于Velocity

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM