Provide api script extension function, please refer to apidemo for specific usage
-
Write the code
-
Replace lockval with yourname in build.sh
The provided function returns ASAP because if this function is used in GetAndLock and PutAndUnlock, it will cause the KV lock time to be too long.
If there is an IO operation, it is recommended to "go" a coroutine to execute it