需要一个在C ++,Java和.Net应用程序之间共享的缓存 [英] Need a cache which is shared between C++, Java and .Net Applications

查看:215
本文介绍了需要一个在C ++,Java和.Net应用程序之间共享的缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一个缓存解决方案与C ++,.Net和Java所有访问和填充缓存中的相同数据? (数据仅由简单字符串组成)

Is there a caching solution which works with C++, .Net and Java all accessing and populating same data in cache? (Data is composed of simple strings only)

较长版本:

我有4个应用程序区域的问题。其中两个是用C ++开发的,一个是java桌面应用程序,另一个是使用.NET 3.5的C#应用​​程序。

I have 4 applications which work on different areas of a problem. Two of them are developed in C++, one is a java desktop application, and another is a C# application using .Net 3.5.

目前,他们以同一来源(网络服务)以自己的特殊方式单独获取数据。程序使用这些数据,并实例化和填充其他数据结构(读为:使用分隔符的简单字符串),这些数据结构也被其他应用程序使用。

Currently they get data individually in their own special ways from same source (a web-service). Programs use this data and instantiate and populate other data structures (read: simple strings using separators) which are also used by other applications.

目前,远程)套接字。问题是,特定信息的消费者缓存由另一程序提供的结果以供稍后在其自己的存储器中使用。生产者还将其存储在自己的存储器中以给予另一个程序,如果需要,等等,并且最后,我最终得到在每个程序的存储器中复制的相同信息。

Currently it is done through (local/remote) sockets between individual programs. The problem is that, the consumer of a specific information caches the results provided by another program for later use in its own memory. The producer also stores it in its own memory to give to another program if it requires, and so on and so on, and in the end I end up with same information copied in every program's memory.

我想如果有一个中间层,说一个缓存,每个程序填充和访问该缓存中的数据,它会解决内存问题。它也解决了每个应用程序对数据源查询相同数据的问题。然后我会有一个程序填充输入数据和其他人在工作。是否有解决此问题的缓存解决方案?

I'm thinking if there is a middle layer of, say a cache, and every program populated and accessed the data in that cache, it'd solve memory issue. Also it'd solve the problem of every application making queries to data source for same data. I'd then have one program populating input data and others working on it. Is there any caching solution which solves this?

推荐答案

Memcached 在独立应用程序中工作良好。

Memcached works fine across independent applications.

这篇关于需要一个在C ++,Java和.Net应用程序之间共享的缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆