apoc.static.set

Procedure Apoc Extended

apoc.static.set(name, value) - stores value under key for server lifetime storage, returns previously stored or configured value

Signature

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

Input parameters

Name Type Default

key

STRING?

null

value

ANY?

null

Output parameters

Name Type

value

ANY?

Usage Examples

The following stores an in memory value that lasts for the lifetime of the server:

CALL apoc.static.set("twitter.user", "Michael");
Table 1. Results
value

null

We can retrieve static values using apoc.static.get and apoc.static.getAll.