-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Distributed caches are mem caches #30072
Distributed caches are mem caches #30072
Conversation
Memcached and Redis are intances of IMemcache. That interface is superior as it has the fancy inc and dec helpers. Signed-off-by: Christoph Wurst <[email protected]>
Lots of tests needs to be adapted it seems. I do not understand the psalm error: "Type OCP\IMemcache for $lockingCache is always OCP\IMemcache". |
Signed-off-by: Christoph Wurst <[email protected]>
$cache = $this->cache = $this->createMock(IMemcache::class); | ||
; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$cache = $this->cache = $this->createMock(IMemcache::class); | |
; | |
$cache = $this->cache = $this->createMock(IMemcache::class); |
$this->cache = $this->cache = $this->createMock(IMemcache::class); | ||
; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$this->cache = $this->cache = $this->createMock(IMemcache::class); | |
; | |
$this->cache = $this->createMock(IMemcache::class); |
@@ -561,7 +561,7 @@ public function testSingleStorageDeleteFolderFail() { | |||
*/ | |||
public function testShouldMoveToTrash($mountPoint, $path, $userExists, $appDisablesTrash, $expected) { | |||
$fileID = 1; | |||
$cache = $this->createMock(ICache::class); | |||
$cache = $this->cache = $this->createMock(IMemcache::class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$cache = $this->cache = $this->createMock(IMemcache::class); | |
$cache = $this->createMock(IMemcache::class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a case of batch replace gone wrong.
Lots of superflous "$this->cache =" and duplicated ";".
I've raised #31787 so this can be picked up later. |
Memcached and Redis are instances of IMemcache. That interface is
superior as it has the fancy inc and dec helpers.
For app development it's nice if we can use memcache without an instanceof check.