apoc.redis.getSet

Procedure APOC Full

apoc.redis.getSet(uri, key, value, {config}) | Execute the 'SET key value' command and return old value stored (or null if did not exists)

Signature

apoc.redis.getSet(uri :: STRING?, key :: ANY?, value :: ANY?, config = {} :: MAP?) :: (value :: ANY?)

Input parameters

Name Type Default

uri

STRING?

null

key

ANY?

null

value

ANY?

null

config

MAP?

{}

Output parameters