简体   繁体   English

什么是ASP.NET相当于PHP中的memcached?

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

Is there an equivalent in ASP.NET to memcached usage in PHP? ASP.NET中的memcached用法是否与PHP相当? Is there even a way I could use memcached from the VB code behind, or something like it? 有没有办法可以使用后面的VB代码中的memcached,或类似的东西?

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. 那将是Microsoft Velocity ,现在已经进入Windows Server AppFabric缓存它尚未正式支持,但它就在那里。 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 它本质上(从我可以看到与Memcached相同的概念。它被编写为本机Windows Serivce,你可以将它用作会话的状态服务器。作为一个简单的例子,它如何很好地插入Asp.Net

Also check this post for discussions on getting Memcached binding from C#. 另请查看此帖子,了解有关从C#获取Memcached绑定的讨论。

aside? 在旁边? You might also want to look at the all new and shiny NoSql stuff, depending on what you're trying to accomplish obviously. 您可能还想查看所有新的和闪亮的NoSql内容,具体取决于您要完成的内容。 I'm currently playing with RavenDb but I'm not talking about running my enterprise on it... yet 我正在玩RavenDb,但我不是在谈论在我的企业上运行......

memcached is a daemon, totally independant from PHP -- must be writtent in C/C++ memcached是一个守护进程,完全独立于PHP - 必须在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 . 对于库,您可以查看memcached的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 : 是的,它通常与PHP相关联,但PHP绝对不是必需的 - 我会说这种关联通常至少是出于以下原因:

  • Same technical background, at least at first : Linux 相同的技术背景,至少在开始时: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. 适合PHP最重要的一个概念:它是一种粘合语言,非常适合于连接不同的组件,这些组件都非常出色,并使用它们构建应用程序。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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