如何配置Neo4j Browser以使用自定义REST端点?(How to configure Neo4j Browser to use a custom REST endpoint?)
服务器正在运行使用以下行配置的自定义REST端点
org.neo4j.server.webadmin.data.uri=/db/abc
在
neo4j-server.properties
。 然后,REST使用/db/abc
工作正常,但浏览器客户端(http://$SERVERHOST:7474/browser
)停止工作并显示Disconnected from Neo4j
消息Disconnected from Neo4j
。 数据包嗅探表明它仍在尝试连接到db/data
。 清除本地网页缓存并没有帮助。 有没有办法指向浏览器客户端使用自定义端点?消息来源表明
/db/data
可能被硬编码到浏览器中,作为客户端“设置”的一部分(见第23行)。 假设有一种方法可以在客户端中使用:config
命令重新配置这些设置,但命令栏仅在客户端已连接到服务器时可用。有没有办法让这个工作,或者它可能是浏览器客户端中的错误?
The server is running a custom REST endpoint configured using the following line
org.neo4j.server.webadmin.data.uri=/db/abc
in
neo4j-server.properties
. REST is then working fine using/db/abc
, but then the browser client (http://$SERVERHOST:7474/browser
) stops working and displays theDisconnected from Neo4j
message. Packet sniffing indicates it is still trying to connect todb/data
. Clearing local web caches doesn't help. Is there a way to point the browser client to use a custom endpoint?Sources indicate that
/db/data
is possibly hardcoded into the browser as part of client "Settings" (see line 23). There is supposedly a way to reconfigure these settings using the:config
command in the client, but the command bar is only available when the client is already connected to the server.Is there a way to get this to work, or is it possibly a bug in the browser client?
原文:https://stackoverflow.com/questions/30093933
最满意答案
HttpRuntime.Cache存在于应用程序域中,因此您无法从其他应用程序访问它。 如果您希望其他应用程序访问它,您需要通过wcf,web api等公开该缓存。 还要考虑使用分布式缓存。
HttpRuntime.Cache exists in the app domain, so no you can't access it from another app. You'll need to expose that cache via wcf, web api, etc if you want another app to access it. Also consider using a distributed cache.
相关问答
更多-
我从http://theengineroom.provoke.co.nz/archive/2007/04/27/caching-using-httpruntime-cache.aspx中找到以下详细信息 对于缓存,我研究了使用HttpContext.Current.Cache,但在阅读其他博客之后,我发现使用HttpContext进行缓存使用HttpRuntime.Cache进行实际的缓存。 直接使用HttpRuntime的优点是它始终可用,例如在控制台应用程序和单元测试中。 使用HttpRuntime.C ...
-
存储项目的缓存位于Web API主机内的服务器上。 然后,正在您在客户端控制台应用程序中检查的缓存实例中没有任何项目是正常的 - 这些是2个完全不同的对象实例,它们位于2个不同的应用程序中。 The cache in which items are stored lives on the server inside your Web API host. It is then normal that the cache instance that you are checking inside your cl ...
-
我在MVC框架的错误位置,我所追求的是VirtualPathProvider的Cache,我找到了我必须覆盖的方法。 对于那些面临同样问题的人。 GetCacheDependency GetFileHash I was in the wrong place of the MVC Framework, what i was after is the Cache of the VirtualPathProvider, I have found the methods which I have to overwr ...
-
您的代码中可能存在不一致的DateTime.Today.AddHours(6)无效。 你应该使用DateTime.Now.AddHours(6) DateTime.Today是从12:00 AM开始的当天,如果你的代码在6:00 AM之后运行,显然httpruntime缓存不可用。 There is a potential inconsistent in your code that DateTime.Today.AddHours(6) that will not work. you should use ...
-
仅供参考,我最后选择了SPCache。 它确实是一个非常不寻常的SharePoint类:有文档记录,简单易用,无需管理。 它确实提供了HttpRuntime.Cache不做的一件事:允许我创建自己的子类并使其无效而不擦除整个HttpCache。 我可以使用HttpCache中的Dictionary来实现相同的功能,但是锁定它有一些潜在的问题。 我在SPCache上反思并找到了一个可靠,线程安全的实现,这就是我的用法。 需要注意的是:SPCache似乎只是SharePoint Server,而不是Founda ...
-
您可以在Azure Web角色中使用HttpRuntime.Cache而不会出现任何问题,因为我们也在使用它。 要记住的是,此缓存是特定于机器的,如果您运行多个实例,则每个实例都有自己的缓存数据。 You can use HttpRuntime.Cache in Azure web role without any problem as we too are using it. Thing to keep in mind is that this Cache is machine specific, in ...
-
当你每隔两分钟说出插入的值设置为空时,这是否意味着你感兴趣的项目或缓存中的每一个项目? 我问这个问题是因为缓存只存在于应用程序运行时才存在。 如果应用程序重新启动,缓存将消失。 这将解释如果每隔2分钟都会消失的行为。 在这种情况下,您手上有一个不同的问题:为什么应用程序每2分钟重新启动一次。 如果它只是一些项目,那么它可能是一个内存问题。 缓存清理自己以响应低内存。 我相信有一种方法可以对插入的值设置优先级。 但是,如果内存不足,这应该只是一个问题。 如果这仍然不能解决您的问题,那么有一种方法可以发现项目被 ...
-
HttpRuntime.Cache的范围(Scope of HttpRuntime.Cache)[2023-10-20]
HttpRuntime.Cache存在于应用程序域中,因此您无法从其他应用程序访问它。 如果您希望其他应用程序访问它,您需要通过wcf,web api等公开该缓存。 还要考虑使用分布式缓存。 HttpRuntime.Cache exists in the app domain, so no you can't access it from another app. You'll need to expose that cache via wcf, web api, etc if you want anoth ... -
HttpRuntime.Cache是否在Load Cluster环境中工作?(Does HttpRuntime.Cache work in Load Cluster enviornment?)[2022-02-09]
Load Cluster Environment是什么意思? 您是否指出缓存的内容在群集的所有成员上应该相同? 如果是这种情况,可以通过两种方式完成 使用Sql server序列化缓存,让所有服务器指向同一个sql-instance 使用ASPNet状态服务器,这是一个Windows服务asp.net将通过TCP交谈。 再次,让所有webserver实例指向同一个状态服务器。 另一种方法是不使用HttpRuntime.Cache,而是实现自己的缓存提供者并使用memcached等技术。 What do yo ... -
缓存存储在Web服务器内存中。 您应该了解Viewstate,Cache和Session之间的区别 Cache is stored in web server memory. You should understand the differences between Viewstate, Cache and Session