feat: add method to increment value in StoredCounter

This commit is contained in:
2026-07-05 18:00:49 +08:00
parent baddf23df5
commit 64bb8e3a12
+3
View File
@@ -157,6 +157,9 @@ class StoredCounter(StoredBase):
def get_remain(self) -> int:
return self.total - self.value
def add(self, value=1):
self.value += value
@cached_property
def _attrs(self) -> dict:
attrs = super()._attrs