Commit from GitHub Actions (Generate Clients & Examples)

This commit is contained in:
domwong
2021-11-03 14:52:07 +00:00
parent bcf90159ac
commit 80fcc6a897
10 changed files with 14 additions and 14 deletions

View File

@@ -7,7 +7,7 @@ import (
"github.com/micro/services/clients/go/cache"
)
// Decrement a value (if it's a number)
// Decrement a value (if it's a number). If key not found it is equivalent to set.
func DecrementAvalue() {
cacheService := cache.NewCacheService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := cacheService.Decrement(&cache.DecrementRequest{

View File

@@ -1,6 +1,6 @@
const { CacheService } = require("m3o/cache");
// Decrement a value (if it's a number)
// Decrement a value (if it's a number). If key not found it is equivalent to set.
async function decrementAvalue() {
let cacheService = new CacheService(process.env.MICRO_API_TOKEN);
let rsp = await cacheService.decrement({

View File

@@ -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{

View File

@@ -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({

View File

@@ -7,7 +7,7 @@ import (
"github.com/micro/services/clients/go/cache"
)
// Get an item from the cache by key
// Get an item from the cache by key. If key is not found, an empty response is returned.
func GetAvalue() {
cacheService := cache.NewCacheService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := cacheService.Get(&cache.GetRequest{

View File

@@ -1,6 +1,6 @@
const { CacheService } = require("m3o/cache");
// Get an item from the cache by key
// Get an item from the cache by key. If key is not found, an empty response is returned.
async function getAvalue() {
let cacheService = new CacheService(process.env.MICRO_API_TOKEN);
let rsp = await cacheService.get({

View File

@@ -7,7 +7,7 @@ import (
"github.com/micro/services/clients/go/cache"
)
// Increment a value (if it's a number)
// Increment a value (if it's a number). If key not found it is equivalent to set.
func IncrementAvalue() {
cacheService := cache.NewCacheService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := cacheService.Increment(&cache.IncrementRequest{

View File

@@ -1,6 +1,6 @@
const { CacheService } = require("m3o/cache");
// Increment a value (if it's a number)
// Increment a value (if it's a number). If key not found it is equivalent to set.
async function incrementAvalue() {
let cacheService = new CacheService(process.env.MICRO_API_TOKEN);
let rsp = await cacheService.increment({