You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cache): add --global flag for overriding scope (#330)
# Summary
Adds the `--global` flag to the `cache get`, `cache set`, and `cache
remove`. This flag force the execution to use the global cache, even
when run within the scope of an executable.
Closes#329
Copy file name to clipboardExpand all lines: docs/cli/flow_cache_clear.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Clear cache data. Use --all to remove data across all scopes.
4
4
5
5
### Synopsis
6
6
7
-
The data store is a key-value store that can be used to persist data across executions. Values that are set outside of an executable will persist across all executions until they are cleared. When set within an executable, the data will only persist across serial or parallel sub-executables but all values will be cleared when the parent executable completes.
7
+
The data store is a key-value store that can be used to persist data across executions. Values that are set outside of an executable will persist across all executions until they are cleared. When set within an executable, the data will only persist across serial or parallel sub-executables but all values will be cleared when the parent executable completes. Use the --global flag to force use of the global cache scope, even when called from within an executable.
8
8
9
9
This will remove all keys and values from the data store.
Copy file name to clipboardExpand all lines: docs/cli/flow_cache_get.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Get cached data by key.
4
4
5
5
### Synopsis
6
6
7
-
The data store is a key-value store that can be used to persist data across executions. Values that are set outside of an executable will persist across all executions until they are cleared. When set within an executable, the data will only persist across serial or parallel sub-executables but all values will be cleared when the parent executable completes.
7
+
The data store is a key-value store that can be used to persist data across executions. Values that are set outside of an executable will persist across all executions until they are cleared. When set within an executable, the data will only persist across serial or parallel sub-executables but all values will be cleared when the parent executable completes. Use the --global flag to force use of the global cache scope, even when called from within an executable.
8
8
9
9
This will retrieve the value for the given key.
10
10
@@ -15,7 +15,8 @@ flow cache get KEY [flags]
15
15
### Options
16
16
17
17
```
18
-
-h, --help help for get
18
+
-g, --global Force use of the global cache scope, even when called from within an executable
Copy file name to clipboardExpand all lines: docs/cli/flow_cache_list.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ List all keys in the store.
4
4
5
5
### Synopsis
6
6
7
-
The data store is a key-value store that can be used to persist data across executions. Values that are set outside of an executable will persist across all executions until they are cleared. When set within an executable, the data will only persist across serial or parallel sub-executables but all values will be cleared when the parent executable completes.
7
+
The data store is a key-value store that can be used to persist data across executions. Values that are set outside of an executable will persist across all executions until they are cleared. When set within an executable, the data will only persist across serial or parallel sub-executables but all values will be cleared when the parent executable completes. Use the --global flag to force use of the global cache scope, even when called from within an executable.
8
8
9
9
This will list all keys currently stored in the data store.
Copy file name to clipboardExpand all lines: docs/cli/flow_cache_remove.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Remove a key from the cached data store.
4
4
5
5
### Synopsis
6
6
7
-
The data store is a key-value store that can be used to persist data across executions. Values that are set outside of an executable will persist across all executions until they are cleared. When set within an executable, the data will only persist across serial or parallel sub-executables but all values will be cleared when the parent executable completes.
7
+
The data store is a key-value store that can be used to persist data across executions. Values that are set outside of an executable will persist across all executions until they are cleared. When set within an executable, the data will only persist across serial or parallel sub-executables but all values will be cleared when the parent executable completes. Use the --global flag to force use of the global cache scope, even when called from within an executable.
8
8
9
9
This will remove the specified key and its value from the data store.
10
10
@@ -15,7 +15,8 @@ flow cache remove KEY [flags]
15
15
### Options
16
16
17
17
```
18
-
-h, --help help for remove
18
+
-g, --global Force use of the global cache scope, even when called from within an executable
Copy file name to clipboardExpand all lines: docs/cli/flow_cache_set.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Set cached data by key.
4
4
5
5
### Synopsis
6
6
7
-
The data store is a key-value store that can be used to persist data across executions. Values that are set outside of an executable will persist across all executions until they are cleared. When set within an executable, the data will only persist across serial or parallel sub-executables but all values will be cleared when the parent executable completes.
7
+
The data store is a key-value store that can be used to persist data across executions. Values that are set outside of an executable will persist across all executions until they are cleared. When set within an executable, the data will only persist across serial or parallel sub-executables but all values will be cleared when the parent executable completes. Use the --global flag to force use of the global cache scope, even when called from within an executable.
8
8
9
9
This will overwrite any existing value for the key.
10
10
@@ -15,7 +15,8 @@ flow cache set KEY [VALUE] [flags]
15
15
### Options
16
16
17
17
```
18
-
-h, --help help for set
18
+
-g, --global Force use of the global cache scope, even when called from within an executable
0 commit comments