mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-13 19:45:26 +00:00
Commit from GitHub Actions (Generate Clients & Examples)
This commit is contained in:
2
examples/cache/delete/go/deleteAValue.go
vendored
2
examples/cache/delete/go/deleteAValue.go
vendored
@@ -7,7 +7,7 @@ import (
|
||||
"github.com/micro/services/clients/go/cache"
|
||||
)
|
||||
|
||||
// Delete a value from the cache
|
||||
// Delete a value from the cache. If key not found a success response is returned.
|
||||
func DeleteAvalue() {
|
||||
cacheService := cache.NewCacheService(os.Getenv("MICRO_API_TOKEN"))
|
||||
rsp, err := cacheService.Delete(&cache.DeleteRequest{
|
||||
|
||||
2
examples/cache/delete/node/deleteAValue.js
vendored
2
examples/cache/delete/node/deleteAValue.js
vendored
@@ -1,6 +1,6 @@
|
||||
const { CacheService } = require("m3o/cache");
|
||||
|
||||
// Delete a value from the cache
|
||||
// Delete a value from the cache. If key not found a success response is returned.
|
||||
async function deleteAvalue() {
|
||||
let cacheService = new CacheService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await cacheService.delete({
|
||||
|
||||
Reference in New Issue
Block a user