Skip to content
Snippets Groups Projects
Commit f21b8ea9 authored by Lyuben Penkovski's avatar Lyuben Penkovski
Browse files

Example policies for setting and getting JSON value from cache

parent ac420591
No related branches found
No related tags found
1 merge request!2Example policies for setting and getting JSON value from cache
package example.cacheGet
result := cache.get("mykey", "mynamespace", "myscope")
package example.cacheSet
default success = false
success = true {
msg := cache.set("mykey", "mynamespace", "myscope", input)
msg == "success"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment