increment abstract method
Increment the value of an item in the cache.
- Parameters:
key: The key of the item to increment.amount: The amount to increment by (default is 1).
- Returns: The new value of the item.
Implementation
Future<int> increment(String key, [int amount = 1]);