diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-04-29 16:34:36 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-04-30 14:48:39 +0200 |
commit | acf30ede95f4b8986787f81edcf025a84237b7c5 (patch) | |
tree | 8bfd36e370c084793f98a6cf0366916ab27f66cb /lib/public | |
parent | 29213b6136a4b2f71e5f981e9bc08e3e76128d4e (diff) | |
download | nextcloud-server-acf30ede95f4b8986787f81edcf025a84237b7c5.tar.gz nextcloud-server-acf30ede95f4b8986787f81edcf025a84237b7c5.zip |
add compare and swap to memcache
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/imemcache.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/public/imemcache.php b/lib/public/imemcache.php index bc7762f80f9..56a33c9572f 100644 --- a/lib/public/imemcache.php +++ b/lib/public/imemcache.php @@ -65,4 +65,14 @@ interface IMemcache extends ICache { * @since 8.0.0 */ public function dec($key, $step = 1); + + /** + * Compare and set + * + * @param string $key + * @param mixed $old + * @param mixed $new + * @return bool + */ + public function cas($key, $old, $new); } |