diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-15 12:37:36 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-15 12:37:36 +0100 |
commit | b37634a57de1f6a814687670b32472895ed49314 (patch) | |
tree | 08812523f661355a1da23de4cfac4f3e0b59a476 /lib | |
parent | d8867f7692aae2cc5bb2ffaf00c53c9e77c61faf (diff) | |
parent | d195584a324d0b1b2c41e50ad1e545067150aed2 (diff) | |
download | nextcloud-server-b37634a57de1f6a814687670b32472895ed49314.tar.gz nextcloud-server-b37634a57de1f6a814687670b32472895ed49314.zip |
Merge pull request #21721 from owncloud/capped-memcache-indirect-set
Allow indirect set in CappedMemoryCache
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/cache/cappedmemorycache.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/cache/cappedmemorycache.php b/lib/private/cache/cappedmemorycache.php index cfaf78c51df..e3efbf76a23 100644 --- a/lib/private/cache/cappedmemorycache.php +++ b/lib/private/cache/cappedmemorycache.php @@ -64,8 +64,8 @@ class CappedMemoryCache implements ICache, \ArrayAccess { return $this->hasKey($offset); } - public function offsetGet($offset) { - return $this->get($offset); + public function &offsetGet($offset) { + return $this->cache[$offset]; } public function offsetSet($offset, $value) { |