apoc.static.set

过程 Apoc 扩展

apoc.static.set(name, value) - 将值存储在服务器生命周期存储的键下,返回先前存储或配置的值

签名

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

输入参数

名称 类型 默认

键 (key)

STRING?

null

ANY?

null

输出参数

名称 类型

ANY?

使用示例

以下内容存储了一个在服务器生命周期内持续存在的内存值

CALL apoc.static.set("twitter.user", "Michael");
表 1. 结果

null

我们可以使用 apoc.static.getapoc.static.getAll 来检索静态值。

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