Skip to content
Snippets Groups Projects

Make the namespace and scope fields optional when setting and getting values from cache

Merged Lyuben Penkovski requested to merge optional-namespace-scope into main
57 files
+ 511
81
Compare changes
  • Side-by-side
  • Inline
Files
57
+ 2
2
@@ -7,7 +7,7 @@ var CacheGetRequest = Type("CacheGetRequest", func() {
Field(1, "key", String)
Field(2, "namespace", String)
Field(3, "scope", String) // Initial implementation with a single scope
Required("key", "namespace", "scope")
Required("key")
})
var CacheSetRequest = Type("CacheSetRequest", func() {
@@ -15,5 +15,5 @@ var CacheSetRequest = Type("CacheSetRequest", func() {
Field(2, "key", String)
Field(3, "namespace", String)
Field(4, "scope", String) // Initial implementation with a single scope
Required("data", "key", "namespace", "scope")
Required("data", "key")
})
Loading