2.4 Data access
The following are the types of cache data operations that are available:
- Data update operations
-
-
put (storing data)
-
create (storing new data)
-
update (updating data)
-
replace (replacing data)
-
remove (deleting data)
-
- Data reference operation
-
-
get (acquiring data)
-
Depending on the type of data operation, you can perform batch operations on multiple data items in a cache.
You can use API functions and commands to manipulate data in a cache. The following table shows the use of the API functions and the commands for data operations.
Data operation |
API function |
Command |
---|---|---|
Data update operations |
|
|
Data update operations (batch operation) |
|
eztool removeall command |
Data reference operation |
get |
eztool get command |
Data reference operation (batch operation) |
getAll |
There is no applicable command. |
- Important note
-
In terms of the data types and sizes that can be specified, there is not complete compatibility between the API functions and the commands.
- Differences in data update operations
-
The data update operation you can perform depends on whether you use an API function (put, create, update, replace, putAll) or the eztool put command. The following table shows the data operations supported by the API functions and the command:
API function or command
Storing new data
Updating existing data
-
Put
-
put All
-
eztool put command
Y
Y
create
Y
N
update
N
Y
replace
N
Y#
- Legend:
-
Y: Can be executed.
N: Cannot be executed.
- #
-
Replaces only values that match the specified values.
-
- Organization of this section