Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
policies
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gaia-X
Trust Services API
policies
f21b8ea9e1a5f31c09daf02bb2e3b95e7f767419
policies
example
cacheGet_1.0.rego
Find file
Normal view
Permalink
cacheGet_1.0.rego
81 B
Newer
Older
Blame preferences
Learn to ignore specific revisions
Example policies for setting and getting JSON value from cache
Lyuben Penkovski
committed
3 years ago
1
2
3
package
example
.
cacheGet
result
:=
cache
.
get
(
"mykey"
,
"mynamespace"
,
"myscope"
)