diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-01-14 15:00:41 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-01-14 15:00:41 +0100 |
commit | d195584a324d0b1b2c41e50ad1e545067150aed2 (patch) | |
tree | 0e0827b137d9c86946b90a3f0b6b830f7105316f /lib/private/cache | |
parent | 8f89e3520d74e1805dc46947742a17683ece6ca7 (diff) | |
download | nextcloud-server-d195584a324d0b1b2c41e50ad1e545067150aed2.tar.gz nextcloud-server-d195584a324d0b1b2c41e50ad1e545067150aed2.zip |
Allow indirect set in CappedMemoryCache
Diffstat (limited to 'lib/private/cache')
-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) { |