Ascent.persist
Ascent.persist.set
Stores a value persistently
Parameter
Type
Description
Key
String
Identifier that will map to the value
Value
Any
Value to persist
expiry
Number
Example
ascent.persist.get
Retrieves a Value by Key.
Parameter
Type
Description
Key
String
accepts a String value
Example
Ascent.persist.redis.set
Stores a value in Redis
Parameter
Type
Description
url
string
Redis server url
key
string
key under which to store
value
any
value to store
expiry?
number
(Optional) expiry time in seconds
Example
ascent.persist.redis.get
Retrieves a value from Redis
Parameter
Type
Description
url
string
Redis server url
key
string
key to fetch
Last updated
Was this helpful?