apoc.static.list

过程 Apoc 扩展

apoc.static.list(prefix) - 返回配置中静态存储的值 (apoc.static.<prefix>.*) 或服务器生命周期存储

签名

apoc.static.list(prefix :: STRING?) :: (key :: STRING?, value :: ANY?)

输入参数

名称 类型 默认

前缀

STRING?

null

输出参数

名称 类型

键 (key)

STRING?

ANY?

使用示例

本节中的示例假设我们已先使用 apoc.static.set 将值存储在内存中

CALL apoc.static.set("twitter.user", "Michael");
CALL apoc.static.set("twitter.username", "mesirii");
以下内容返回 twitter 前缀下的所有静态值
CALL apoc.static.list("twitter");
表 1. 结果
键 (key)

"user" (用户)

“Michael”

"username"

"mesirii"

© . This site is unofficial and not affiliated with Neo4j, Inc.