summaryrefslogtreecommitdiffstats
path: root/lib/private/cache
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-01-14 15:00:41 +0100
committerRobin Appelman <icewind@owncloud.com>2016-01-14 15:00:41 +0100
commitd195584a324d0b1b2c41e50ad1e545067150aed2 (patch)
tree0e0827b137d9c86946b90a3f0b6b830f7105316f /lib/private/cache
parent8f89e3520d74e1805dc46947742a17683ece6ca7 (diff)
downloadnextcloud-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.php4
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) {