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

Merge branch 'example-cache-policies' into 'main'

Example policies for setting and getting JSON value from cache

See merge request !2
parents ac420591 f21b8ea9
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