mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-16 13:04:34 +00:00
Commit from GitHub Actions (Generate Clients & Examples)
This commit is contained in:
@@ -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{
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user