[BUG]: Cache increment/decrement doesn't work
See original GitHub issueDescription
Reproduce
- Create a new “entry”:
to
https://api.m3o.com/v1/cache/Set
with:{"key":"lol","ttl":0,"value":"123"}
- Increment the entry:
to
https://api.m3o.com/v1/cache/Increment
with:
and receive{"key":"lol","value":3}
{"Id":"cache.increment","Code":500,"Detail":"Error incrementing cache","Status":"Internal Server Error"}
- Decrementing the entry:
to
https://api.m3o.com/v1/cache/Decrement
with:
and receive:{"key":"lol","value":2}
{"Id":"cache.decrement","Code":500,"Detail":"Error decrementing cache","Status":"Internal Server Error"}
Screenshots
No response
Additional information
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Increment/Decrement across a set of nodes? - Discuss Dgraph
I think that issue doesn't apply here cuz the value is coming from math. ... This increment approach should work fine with several...
Read more >Counter Helper GUI doesn't allow for 'Unlimited' setting #8151
Try to increment it using i.e. Dev Tools->Services->counter.increment using the newly created entity's ID. The counter fails to increment ...
Read more >Why avoid increment ("++") and decrement ("--") operators in ...
Show activity on this post. The ++ (increment) and -- (decrement) operators have been known to contribute to bad code by encouraging excessive...
Read more >Cache fallback doesn't take increment index into account
We have a job that builds the "default" cache and then in a MR pipeline expect to be able to fallback to it...
Read more >GraphQL and Apollo Client by Example: Part 3 - codeburst
We refactor the increment and decrement features to mutations; ... object (thus contains the cache; so we can read the current local state)....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll play around with it. Expect a fix in a few hours.
It’s not a changing value. Can you provide example usage.