diff options
author | Robin Appelman <robin@icewind.nl> | 2024-07-10 22:23:37 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2024-08-07 19:41:43 +0200 |
commit | 4691d197707e84173800c5c225d5395fee53db17 (patch) | |
tree | babba13d8cdcf27522ea2bacf81228da45663a02 /lib/public | |
parent | cd9cc01b7739535cc9246103f90ae2d02d8ea217 (diff) | |
download | nextcloud-server-4691d197707e84173800c5c225d5395fee53db17.tar.gz nextcloud-server-4691d197707e84173800c5c225d5395fee53db17.zip |
docs: clearify IMemcache::inc and dec behavior
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/IMemcache.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/public/IMemcache.php b/lib/public/IMemcache.php index fbc2719c25d..6e63884ff45 100644 --- a/lib/public/IMemcache.php +++ b/lib/public/IMemcache.php @@ -30,6 +30,9 @@ interface IMemcache extends ICache { /** * Increase a stored number * + * If no value is stored with the key, it will behave as if a 0 was stored. + * If a non-numeric value is stored, the operation will fail and `false` is returned. + * * @param string $key * @param int $step * @return int | bool @@ -40,6 +43,9 @@ interface IMemcache extends ICache { /** * Decrease a stored number * + * If no value is stored with the key, the operation will fail and `false` is returned. + * If a non-numeric value is stored, the operation will fail and `false` is returned. + * * @param string $key * @param int $step * @return int | bool |